mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-15 16:16:10 +09:00
Rectified heretic YY-MM-DD to standard YYYY-MM-DD
This commit is contained in:
@@ -13,7 +13,7 @@ import com.badlogic.gdx.graphics.Color
|
||||
*
|
||||
* reference: http://www.brucelindbloom.com/index.html?Equations.html
|
||||
*
|
||||
* Created by minjaesong on 16-09-01.
|
||||
* Created by minjaesong on 2016-09-01.
|
||||
*/
|
||||
|
||||
object CIELChabUtil {
|
||||
|
||||
@@ -21,7 +21,7 @@ import com.badlogic.gdx.graphics.Color
|
||||
* If you're using Mac, you can play around with this colour space with
|
||||
* ColorSync Utility's calculator.
|
||||
*
|
||||
* Created by minjaesong on 16-09-01.
|
||||
* Created by minjaesong on 2016-09-01.
|
||||
*/
|
||||
object CIELabUtil {
|
||||
fun Color.brighterLab(scale: Float): Color {
|
||||
|
||||
@@ -17,7 +17,7 @@ import net.torvald.colourutil.CIELuvUtil.toXYZ
|
||||
* If you're using Mac, you can play around with this colour space with
|
||||
* ColorSync Utility's calculator.
|
||||
*
|
||||
* Created by minjaesong on 16-09-06.
|
||||
* Created by minjaesong on 2016-09-06.
|
||||
*/
|
||||
object CIELuvUtil {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import com.badlogic.gdx.graphics.Color
|
||||
|
||||
/**
|
||||
* 6-Step RGB with builtin utils.
|
||||
* Created by minjaesong on 16-02-11.
|
||||
* Created by minjaesong on 2016-02-11.
|
||||
*/
|
||||
class Col216 : LimitedColours {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import com.badlogic.gdx.graphics.Color
|
||||
|
||||
/**
|
||||
* 12-bit (16-step) RGB with builtin utils.
|
||||
* Created by minjaesong on 16-01-23.
|
||||
* Created by minjaesong on 2016-01-23.
|
||||
*/
|
||||
class Col4096 : LimitedColours {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import net.torvald.terrarum.ModMgr
|
||||
|
||||
/**
|
||||
* RGB- and CIE-Modeled CCT calculator
|
||||
* Created by minjaesong on 16-07-26.
|
||||
* Created by minjaesong on 2016-07-26.
|
||||
*/
|
||||
object ColourTemp {
|
||||
private var clut = GdxColorMap(ModMgr.getGdxFile("basegame", "colourmap/black_body_col_1000_40000_K.tga"))
|
||||
|
||||
@@ -4,7 +4,7 @@ import com.jme3.math.FastMath
|
||||
import com.badlogic.gdx.graphics.Color
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-07-26.
|
||||
* Created by minjaesong on 2016-07-26.
|
||||
*/
|
||||
object ColourUtil {
|
||||
fun toColor(r: Int, g: Int, b: Int) = Color(r.shl(24) or g.shl(16) or b.shl(8) or 0xff)
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.badlogic.gdx.graphics.Color
|
||||
/**
|
||||
* OBSOLETE; use CIELchUtil for natural-looking colour
|
||||
*
|
||||
* Created by minjaesong on 16-01-16.
|
||||
* Created by minjaesong on 2016-01-16.
|
||||
*/
|
||||
object HSVUtil {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package net.torvald.colourutil
|
||||
import com.badlogic.gdx.graphics.Color
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-02-11.
|
||||
* Created by minjaesong on 2016-02-11.
|
||||
*/
|
||||
interface LimitedColours {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user