Package net.lenni0451.imnbt.utils
Class Color
java.lang.Object
net.lenni0451.imnbt.utils.Color
A simple color class used for styling.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Color
public Color(int r, int g, int b) -
Color
public Color(int r, int g, int b, int a)
-
-
Method Details
-
getR
public int getR()Get the red value of the color.- Returns:
- The red value of the color
-
getG
public int getG()Get the green value of the color.- Returns:
- The green value of the color
-
getB
public int getB()Get the blue value of the color.- Returns:
- The blue value of the color
-
getA
public int getA()Get the alpha value of the color.- Returns:
- The alpha value of the color
-
getABGR
public int getABGR()Get the color as an ABGR int used by ImGui for styles.- Returns:
- The color as an ABGR int
-