Package zombie.core
Class Color
java.lang.Object
zombie.core.Color
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
float
static final Color
static final Color
static final Color
static final Color
static final Color
float
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
float
static final Color
static final Color
static final Color
static final Color
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Color
abgrToColor
(int int1, Color color) void
static int
blendABGR
(int int1, int int2) static int
blendBGR
(int int1, int int2) brighter()
brighter
(float float1) void
changeHSBValue
(float float1, float float2, float float3) static int
colorToABGR
(float float1, float float2, float float3, float float4) static int
colorToABGR
(Color color) darker()
darker
(float float1) static Color
boolean
void
fromColor
(int int1) Deprecated.int
getAlpha()
int
static float
getAlphaChannelFromABGR
(int int1) float
float
getB()
int
getBlue()
int
static float
getBlueChannelFromABGR
(int int1) float
float
getG()
int
getGreen()
int
static float
getGreenChannelFromABGR
(int int1) float
float
getR()
int
getRed()
int
static float
getRedChannelFromABGR
(int int1) float
int
hashCode()
static Color
HSBtoRGB
(float float1, float float2, float float3) static Color
void
static int
lerpABGR
(int int1, int int2, float float1) static int
multiplyABGR
(int int1, int int2) static int
multiplyBGR
(int int1, int int2) static Color
random()
scale
(float float1) scaleCopy
(float float1) set
(float float1, float float2, float float3) set
(float float1, float float2, float float3, float float4) void
setABGR
(int int1) static int
setAlphaChannelToABGR
(int int1, float float1) static int
setBlueChannelToABGR
(int int1, float float1) void
static int
setGreenChannelToABGR
(int int1, float float1) static int
setRedChannelToABGR
(int int1, float float1) static int
tintABGR
(int int1, int int2) toString()
-
Field Details
-
transparent
-
white
-
yellow
-
red
-
purple
-
blue
-
green
-
black
-
gray
-
cyan
-
darkGray
-
lightGray
-
pink
-
orange
-
magenta
-
darkGreen
-
lightGreen
-
a
public float a -
b
public float b -
g
public float g -
r
public float r
-
-
Constructor Details
-
Color
public Color() -
Color
-
Color
public Color(float float1, float float2, float float3) -
Color
public Color(float float1, float float2, float float3, float float4) -
Color
-
Color
public Color(int int1, int int2, int int3) -
Color
public Color(int int1, int int2, int int3, int int4) -
Color
public Color(int int1)
-
-
Method Details
-
getR
public float getR() -
getG
public float getG() -
getB
public float getB() -
setColor
-
fromColor
Deprecated. -
setABGR
public void setABGR(int int1) -
abgrToColor
-
colorToABGR
-
colorToABGR
public static int colorToABGR(float float1, float float2, float float3, float float4) -
multiplyABGR
public static int multiplyABGR(int int1, int int2) -
multiplyBGR
public static int multiplyBGR(int int1, int int2) -
blendBGR
public static int blendBGR(int int1, int int2) -
blendABGR
public static int blendABGR(int int1, int int2) -
tintABGR
public static int tintABGR(int int1, int int2) -
lerpABGR
public static int lerpABGR(int int1, int int2, float float1) -
getAlphaChannelFromABGR
public static float getAlphaChannelFromABGR(int int1) -
getBlueChannelFromABGR
public static float getBlueChannelFromABGR(int int1) -
getGreenChannelFromABGR
public static float getGreenChannelFromABGR(int int1) -
getRedChannelFromABGR
public static float getRedChannelFromABGR(int int1) -
setAlphaChannelToABGR
public static int setAlphaChannelToABGR(int int1, float float1) -
setBlueChannelToABGR
public static int setBlueChannelToABGR(int int1, float float1) -
setGreenChannelToABGR
public static int setGreenChannelToABGR(int int1, float float1) -
setRedChannelToABGR
public static int setRedChannelToABGR(int int1, float float1) -
random
-
decode
-
add
-
addToCopy
-
brighter
-
brighter
-
darker
-
darker
-
equals
-
set
-
set
-
set
-
getAlpha
public int getAlpha() -
getAlphaFloat
public float getAlphaFloat() -
getRedFloat
public float getRedFloat() -
getGreenFloat
public float getGreenFloat() -
getBlueFloat
public float getBlueFloat() -
getAlphaByte
public int getAlphaByte() -
getBlue
public int getBlue() -
getBlueByte
public int getBlueByte() -
getGreen
public int getGreen() -
getGreenByte
public int getGreenByte() -
getRed
public int getRed() -
getRedByte
public int getRedByte() -
hashCode
public int hashCode() -
multiply
-
scale
-
scaleCopy
-
toString
-
interp
-
changeHSBValue
public void changeHSBValue(float float1, float float2, float float3) -
HSBtoRGB
-
HSBtoRGB
-