Class ColorInfo

java.lang.Object
zombie.core.textures.ColorInfo

public final class ColorInfo
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    float a  
    float b  
    float g  
    float r  
  • Constructor Summary

    Constructors
    Constructor Description
    ColorInfo()  
    ColorInfo​(float float1, float float2, float float3, float float4)  
  • Method Summary

    Modifier and Type Method Description
    void desaturate​(float float1)  
    float getA()  
    float getB()  
    float getG()  
    float getR()  
    void interp​(ColorInfo colorInfo, float float1, ColorInfo colorInfo2)  
    ColorInfo set​(float float1, float float2, float float3, float float4)  
    ColorInfo set​(ColorInfo colorInfo)  
    Color toColor()  
    ImmutableColor toImmutableColor()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • a

      public float a
    • b

      public float b
    • g

      public float g
    • r

      public float r
  • Constructor Details

    • ColorInfo

      public ColorInfo()
    • ColorInfo

      public ColorInfo​(float float1, float float2, float float3, float float4)
  • Method Details

    • set

      public ColorInfo set​(ColorInfo colorInfo)
    • set

      public ColorInfo set​(float float1, float float2, float float3, float float4)
    • getR

      public float getR()
    • getG

      public float getG()
    • getB

      public float getB()
    • toColor

      public Color toColor()
    • toImmutableColor

      public ImmutableColor toImmutableColor()
    • getA

      public float getA()
    • desaturate

      public void desaturate​(float float1)
    • interp

      public void interp​(ColorInfo colorInfo, float float1, ColorInfo colorInfo2)
    • toString

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