Class RGBA
java.lang.Object
org.indiumstudios.keylib.rendering.colors.RGBA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetAlpha()Gets the value of alpha (the transparency).floatgetBlue()Gets the value of blue.floatgetGreen()Gets the value of green.floatgetRed()Gets the value of red.voidsetAlpha(float newAlpha) Sets the value of alpha (the transparency)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
-
RGBA
public RGBA(float red, float green, float blue, float alpha)
-
-
Method Details
-
getAlpha
public float getAlpha()Gets the value of alpha (the transparency). -
setAlpha
public void setAlpha(float newAlpha) Sets the value of alpha (the transparency) -
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
-