Package zombie.core
Class Color
java.lang.Object
zombie.core.Color
- All Implemented Interfaces:
java.io.Serializable
public class Color
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description floatafloatbstatic Colorblackstatic Colorbluestatic Colorcyanstatic ColordarkGraystatic ColordarkGreenfloatgstatic Colorgraystatic Colorgreenstatic ColorlightGraystatic ColorlightGreenstatic Colormagentastatic Colororangestatic Colorpinkstatic Colorpurplefloatrstatic Colorredstatic Colortransparentstatic Colorwhitestatic Coloryellow -
Constructor Summary
Constructors Constructor Description Color(float float1, float float2, float float3)Color(float float1, float float2, float float3, float float4)Color(int int1)Color(int int1, int int2, int int3)Color(int int1, int int2, int int3, int int4)Color(Color color)Color(Color color, Color color2, float float1) -
Method Summary
Modifier and Type Method Description voidadd(Color color)ColoraddToCopy(Color color)Colorbrighter()Colorbrighter(float float1)Colordarker()Colordarker(float float1)static Colordecode(java.lang.String string)booleanequals(java.lang.Object object)voidfromColor(int int1)intgetAlpha()intgetAlphaByte()floatgetAlphaFloat()intgetBlue()intgetBlueByte()floatgetBlueFloat()intgetGreen()intgetGreenByte()floatgetGreenFloat()intgetRed()intgetRedByte()floatgetRedFloat()inthashCode()static java.lang.Integer[]HSBtoRGB(float float1, float float2, float float3)voidinterp(Color color, float float1, Color color2)Colormultiply(Color color)voidscale(float float1)ColorscaleCopy(float float1)voidset(Color color)voidsetColor(Color color, Color color2, float float1)java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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
-
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
-
setColor
-
fromColor
public void fromColor(int int1) -
decode
-
add
-
addToCopy
-
brighter
-
brighter
-
darker
-
darker
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equalsin classjava.lang.Object
-
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()- Overrides:
hashCodein classjava.lang.Object
-
multiply
-
scale
public void scale(float float1) -
scaleCopy
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
interp
-
HSBtoRGB
public static java.lang.Integer[] HSBtoRGB(float float1, float float2, float float3)
-