mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
Finally fixed CIELabUtil's anomaly; apparently past me was dumb fucking perkeleen vittupää
Former-commit-id: 731df40639ccf1463238f70dd615bd1771eee259 Former-commit-id: fdf00fbe30f876731d9d952b2a65f448b90c7913
This commit is contained in:
34
src/net/torvald/terrarum/StateTestingSandbox.kt
Normal file
34
src/net/torvald/terrarum/StateTestingSandbox.kt
Normal file
@@ -0,0 +1,34 @@
|
||||
package net.torvald.terrarum
|
||||
|
||||
import net.torvald.colourutil.CIELabUtil.toXYZ
|
||||
import net.torvald.colourutil.CIELabUtil.toLab
|
||||
import net.torvald.colourutil.CIELabUtil.toRGB
|
||||
import org.newdawn.slick.Color
|
||||
import org.newdawn.slick.GameContainer
|
||||
import org.newdawn.slick.Graphics
|
||||
import org.newdawn.slick.state.BasicGameState
|
||||
import org.newdawn.slick.state.StateBasedGame
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-09-05.
|
||||
*/
|
||||
class StateTestingSandbox : BasicGameState() {
|
||||
val colRGB = Color(0x51621D)
|
||||
val colAfter1 = colRGB.toXYZ().toRGB()
|
||||
//val colAfter2 = colRGB.toXYZ().toLab().toXYZ().toRGB()
|
||||
|
||||
override fun init(container: GameContainer?, game: StateBasedGame?) {
|
||||
println("Color:\n$colRGB")
|
||||
println("Color -> XYZ -> Color:\n$colAfter1")
|
||||
//println("Color -> XYZ -> Lab -> XYZ -> Color:\n$colAfter2")
|
||||
}
|
||||
|
||||
override fun update(container: GameContainer?, game: StateBasedGame?, delta: Int) {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
override fun getID() = Terrarum.STATE_ID_TEST_SHIT
|
||||
|
||||
override fun render(container: GameContainer?, game: StateBasedGame?, g: Graphics?) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user