java.lang.Object
org.indiumstudios.keylib.rendering.colors.RGB
All Implemented Interfaces:
RGBc

public final class RGB extends Object implements RGBc
  • Constructor Summary

    Constructors
    Constructor
    Description
    RGB(float red, float green, float blue)
    An RGB color.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Gets the value of blue.
    float
    Gets the value of green.
    float
    Gets the value of red.
    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

    • RGB

      public RGB(float red, float green, float blue)
      An RGB color.
      Parameters:
      red - Red.
      green - Green.
      blue - Blue.
  • Method Details

    • 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