Package zombie.core

Class ImmutableColor

java.lang.Object
zombie.core.ImmutableColor

public final class ImmutableColor
extends java.lang.Object
  • Field Details

  • Constructor Details

    • ImmutableColor

      public ImmutableColor​(ImmutableColor immutableColor)
    • ImmutableColor

      public ImmutableColor​(Color color)
    • ImmutableColor

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

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

      public ImmutableColor​(Color color, Color color2, float float1)
    • ImmutableColor

      public ImmutableColor​(int int1, int int2, int int3)
    • ImmutableColor

      public ImmutableColor​(int int1, int int2, int int3, int int4)
    • ImmutableColor

      public ImmutableColor​(int int1)
  • Method Details

    • toMutableColor

      public Color toMutableColor()
    • random

      public static ImmutableColor random()
    • decode

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

      public ImmutableColor add​(ImmutableColor immutableColor)
    • brighter

      public ImmutableColor brighter()
    • brighter

      public ImmutableColor brighter​(float float1)
    • darker

      public ImmutableColor darker()
    • darker

      public ImmutableColor darker​(float float1)
    • equals

      public boolean equals​(java.lang.Object object)
      Overrides:
      equals in class java.lang.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 java.lang.Object
    • multiply

      public ImmutableColor multiply​(Color color)
    • scale

      public ImmutableColor scale​(float float1)
    • toString

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

      public ImmutableColor interp​(ImmutableColor immutableColor, float float1)
    • HSBtoRGB

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