Class ColorInfo

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

public 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 R, float G, float B, float A)  
  • Method Summary

    Modifier and Type Method Description
    void desaturate​(float s)  
    float getA()  
    float getB()  
    float getG()  
    float getR()  
    void interp​(ColorInfo to, float delta, ColorInfo dest)  
    ColorInfo set​(float R, float G, float B, float A)  
    Color toColor()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 R, float G, float B, float A)
  • Method Details

    • set

      public ColorInfo set​(float R, float G, float B, float A)
    • getR

      public float getR()
    • getG

      public float getG()
    • getB

      public float getB()
    • toColor

      public Color toColor()
    • getA

      public float getA()
    • desaturate

      public void desaturate​(float s)
    • interp

      public void interp​(ColorInfo to, float delta, ColorInfo dest)