java.lang.Object
org.sunflow.image.Color
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Color
static final Color
static final Color
static Color
black()
static final Color
static final Color
static final Color
static final Color
final Color
clamp
(float min, float max) final Color
copy()
final Color
static final Color
static final Color
final Color
exp()
final float
final float
final float
getMax()
final float
getMin()
final float[]
getRGB()
static final boolean
hasContrast
(Color c1, Color c2, float thresh) final boolean
isBlack()
final boolean
isInf()
final boolean
isNan()
final Color
final Color
final Color
mul
(float s) static final Color
static final Color
final Color
static final Color
static final Color
final Color
opposite()
final Color
set
(float r, float g, float b) final Color
final Color
setRGB
(int rgb) final Color
setRGBE
(int rgbe) final Color
static final Color
static final Color
toLinear()
final int
toRGB()
final int
toRGBE()
toString()
static Color
white()
-
Field Details
-
BLACK
-
WHITE
-
RED
-
GREEN
-
BLUE
-
YELLOW
-
CYAN
-
MAGENTA
-
GRAY
-
-
Constructor Details
-
Color
public Color() -
Color
public Color(float gray) -
Color
public Color(float r, float g, float b) -
Color
-
Color
public Color(int rgb)
-
-
Method Details
-
black
-
white
-
toNonLinear
-
toLinear
-
copy
-
set
-
set
-
setRGB
-
setRGBE
-
isBlack
public final boolean isBlack() -
getLuminance
public final float getLuminance() -
getMin
public final float getMin() -
getMax
public final float getMax() -
getAverage
public final float getAverage() -
getRGB
public final float[] getRGB() -
toRGB
public final int toRGB() -
toRGBE
public final int toRGBE() -
constrainRGB
-
isNan
public final boolean isNan() -
isInf
public final boolean isInf() -
add
-
add
-
add
-
madd
-
madd
-
sub
-
sub
-
sub
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
exp
-
opposite
-
clamp
-
blend
-
blend
-
blend
-
blend
-
hasContrast
-
toString
-