java.lang.Object
org.indiumstudios.keylib.rendering.colors.RGBA
All Implemented Interfaces:
RGBAc, RGBc

public final class RGBA extends Object implements RGBAc
  • Constructor Summary

    Constructors
    Constructor
    Description
    RGBA(float red, float green, float blue, float alpha)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Gets the value of alpha (the transparency).
    float
    Gets the value of blue.
    float
    Gets the value of green.
    float
    Gets the value of red.
    void
    setAlpha(float newAlpha)
    Sets the value of alpha (the transparency)
    void
    setBlue(float newBlue)
    Sets the value of blue.
    void
    setGreen(float newGreen)
    Sets the value of green.
    void
    setRed(float newRed)
    Sets the value of red.
    @NotNull com.badlogic.gdx.graphics.Color
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RGBA

      public RGBA(float red, float green, float blue, float alpha)
  • Method Details

    • getAlpha

      public float getAlpha()
      Gets the value of alpha (the transparency).
      Specified by:
      getAlpha in interface RGBAc
      Returns:
      Returns the value of alpha.
    • setAlpha

      public void setAlpha(float newAlpha)
      Sets the value of alpha (the transparency)
      Specified by:
      setAlpha in interface RGBAc
      Parameters:
      newAlpha - Returns the value of alpha.
    • getRed

      public float getRed()
      Gets the value of red.
      Specified by:
      getRed in interface RGBc
      Returns:
      Returns the value of red.
    • getGreen

      public float getGreen()
      Gets the value of green.
      Specified by:
      getGreen in interface RGBc
      Returns:
      Returns the value of green.
    • getBlue

      public float getBlue()
      Gets the value of blue.
      Specified by:
      getBlue in interface RGBc
      Returns:
      Returns the value of blue.
    • setRed

      public void setRed(float newRed)
      Sets the value of red.
      Specified by:
      setRed in interface RGBc
      Parameters:
      newRed - The value to set.
    • setGreen

      public void setGreen(float newGreen)
      Sets the value of green.
      Specified by:
      setGreen in interface RGBc
      Parameters:
      newGreen - The value to set.
    • setBlue

      public void setBlue(float newBlue)
      Sets the value of blue.
      Specified by:
      setBlue in interface RGBc
      Parameters:
      newBlue - The value to set.
    • toGdxColor

      @Contract(" -> new") @NotNull public @NotNull com.badlogic.gdx.graphics.Color toGdxColor()
      Specified by:
      toGdxColor in interface RGBc