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 Details

    • transparent

      public static final Color transparent
    • white

      public static final Color white
    • yellow

      public static final Color yellow
    • red

      public static final Color red
    • purple

      public static final Color purple
    • blue

      public static final Color blue
    • green

      public static final Color green
    • black

      public static final Color black
    • gray

      public static final Color gray
    • cyan

      public static final Color cyan
    • darkGray

      public static final Color darkGray
    • lightGray

      public static final Color lightGray
    • pink

      public static final Color pink
    • orange

      public static final Color orange
    • magenta

      public static final Color magenta
    • darkGreen

      public static final Color darkGreen
    • lightGreen

      public static final Color lightGreen
    • a

      public float a
    • b

      public float b
    • g

      public float g
    • r

      public float r
  • Constructor Details

    • Color

      public Color​(Color color)
    • Color

      public Color​(float float1, float float2, float float3)
    • Color

      public Color​(float float1, float float2, float float3, float float4)
    • Color

      public Color​(Color color, Color color2, float float1)
    • 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

      public void setColor​(Color color, Color color2, float float1)
    • fromColor

      public void fromColor​(int int1)
    • decode

      public static Color decode​(java.lang.String string)
    • add

      public void add​(Color color)
    • addToCopy

      public Color addToCopy​(Color color)
    • brighter

      public Color brighter()
    • brighter

      public Color brighter​(float float1)
    • darker

      public Color darker()
    • darker

      public Color darker​(float float1)
    • equals

      public boolean equals​(java.lang.Object object)
      Overrides:
      equals in class java.lang.Object
    • set

      public void set​(Color color)
    • 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:
      hashCode in class java.lang.Object
    • multiply

      public Color multiply​(Color color)
    • scale

      public void scale​(float float1)
    • scaleCopy

      public Color scaleCopy​(float float1)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • interp

      public void interp​(Color color, float float1, Color color2)
    • HSBtoRGB

      public static java.lang.Integer[] HSBtoRGB​(float float1, float float2, float float3)