Package zombie.core

Class ImmutableColor

java.lang.Object
zombie.core.ImmutableColor

public final class ImmutableColor extends Object
  • Field Details

  • Constructor Details

    • ImmutableColor

      public ImmutableColor(ImmutableColor color)
    • ImmutableColor

      public ImmutableColor(Color color)
    • ImmutableColor

      public ImmutableColor(float r, float g, float b)
    • ImmutableColor

      public ImmutableColor(float r, float g, float b, float a)
    • ImmutableColor

      public ImmutableColor(Color A, Color B, float delta)
    • ImmutableColor

      public ImmutableColor(int r, int g, int b)
    • ImmutableColor

      public ImmutableColor(int r, int g, int b, int a)
    • ImmutableColor

      public ImmutableColor(int value)
  • Method Details

    • toMutableColor

      public Color toMutableColor()
    • random

      public static ImmutableColor random()
    • decode

      public static ImmutableColor decode(String nm)
    • add

    • brighter

      public ImmutableColor brighter()
    • brighter

      public ImmutableColor brighter(float scale)
    • darker

      public ImmutableColor darker()
    • darker

      public ImmutableColor darker(float scale)
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAlphaInt

      public int getAlphaInt()
    • getAlphaFloat

      public float getAlphaFloat()
    • getRedFloat

      public float getRedFloat()
    • getGreenFloat

      public float getGreenFloat()
    • getBlueFloat

      public float getBlueFloat()
    • getAlphaByte

      public byte getAlphaByte()
    • getBlueInt

      public int getBlueInt()
    • getBlueByte

      public byte getBlueByte()
    • getGreenInt

      public int getGreenInt()
    • getGreenByte

      public byte getGreenByte()
    • getRedInt

      public int getRedInt()
    • getRedByte

      public byte getRedByte()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • multiply

      public ImmutableColor multiply(Color c)
    • scale

      public ImmutableColor scale(float value)
    • toString

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

      public ImmutableColor interp(ImmutableColor to, float delta)
    • HSBtoRGB

      public static Integer[] HSBtoRGB(float hue, float saturation, float brightness)