Package zombie.core
Class Color
java.lang.Object
zombie.core.Color
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorfloatstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorfloatstatic final Colorstatic final Colorstatic final Colorstatic final Color -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorabgrToColor(int int1, Color color) voidstatic intblendABGR(int int1, int int2) static intblendBGR(int int1, int int2) brighter()brighter(float float1) voidchangeHSBValue(float float1, float float2, float float3) static intcolorToABGR(float float1, float float2, float float3, float float4) static intcolorToABGR(Color color) darker()darker(float float1) static ColorbooleanvoidfromColor(int int1) Deprecated.intgetAlpha()intstatic floatgetAlphaChannelFromABGR(int int1) floatfloatgetB()intgetBlue()intstatic floatgetBlueChannelFromABGR(int int1) floatfloatgetG()intgetGreen()intstatic floatgetGreenChannelFromABGR(int int1) floatfloatgetR()intgetRed()intstatic floatgetRedChannelFromABGR(int int1) floatinthashCode()static ColorHSBtoRGB(float float1, float float2, float float3) static Colorvoidstatic intlerpABGR(int int1, int int2, float float1) static intmultiplyABGR(int int1, int int2) static intmultiplyBGR(int int1, int int2) static Colorrandom()scale(float float1) scaleCopy(float float1) set(float float1, float float2, float float3) set(float float1, float float2, float float3, float float4) voidsetABGR(int int1) static intsetAlphaChannelToABGR(int int1, float float1) static intsetBlueChannelToABGR(int int1, float float1) voidstatic intsetGreenChannelToABGR(int int1, float float1) static intsetRedChannelToABGR(int int1, float float1) static inttintABGR(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
-