Class PseudoGrey
- java.lang.Object
-
- com.bombinggames.wurfelengine.extension.PseudoGrey
-
public class PseudoGrey extends java.lang.Object
Algorithm by Rich Franzen, 22 July 1999 mailto:rich@r0k.us (c) 1999, Rich Franzen
-
-
Constructor Summary
Constructors Constructor Description PseudoGrey()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.badlogic.gdx.graphics.Color
toColor(float grey)
Transforms a brightness into a pseudogrey-color.static float
toFloat(com.badlogic.gdx.graphics.Color c)
-
-
-
Method Detail
-
toColor
public static com.badlogic.gdx.graphics.Color toColor(float grey)
Transforms a brightness into a pseudogrey-color.- Parameters:
grey
- the brightness- Returns:
- a pseudo-grayscale color
-
toFloat
public static float toFloat(com.badlogic.gdx.graphics.Color c)
- Parameters:
c
-- Returns:
-
-