Class Color

java.lang.Object
net.lenni0451.imnbt.utils.Color

public class Color extends Object
A simple color class used for styling.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Color(int r, int g, int b)
     
    Color(int r, int g, int b, int a)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the alpha value of the color.
    int
    Get the color as an ABGR int used by ImGui for styles.
    int
    Get the blue value of the color.
    int
    Get the green value of the color.
    int
    Get the red value of the color.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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