Class RGB
java.lang.Object
org.indiumstudios.keylib.rendering.colors.RGB
- All Implemented Interfaces:
RGBc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetBlue()Gets the value of blue.floatgetGreen()Gets the value of green.floatgetRed()Gets the value of red.voidsetBlue(float newBlue) Sets the value of blue.voidsetGreen(float newGreen) Sets the value of green.voidsetRed(float newRed) Sets the value of red.@NotNull com.badlogic.gdx.graphics.Color
-
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. -
getGreen
public float getGreen()Gets the value of green. -
getBlue
public float getBlue()Gets the value of blue. -
setRed
public void setRed(float newRed) Sets the value of red. -
setGreen
public void setGreen(float newGreen) Sets the value of green. -
setBlue
public void setBlue(float newBlue) Sets the value of blue. -
toGdxColor
@Contract(" -> new") @NotNull public @NotNull com.badlogic.gdx.graphics.Color toGdxColor()- Specified by:
toGdxColorin interfaceRGBc
-