java.lang.Object
io.github.cottonmc.cotton.gui.widget.data.Color.HSL
All Implemented Interfaces:
Color
Enclosing interface:
Color

public static class Color.HSL extends Object implements Color
  • Constructor Details

    • HSL

      public HSL(float hue, float sat, float luma)
      Parameters:
      hue - hue angle, between 0 and 1
      sat - saturation, between 0 and 1
      luma - luminance, between 0 and 1
    • HSL

      public HSL(int rgb)
  • Method Details

    • toRgb

      public int toRgb()
      Description copied from interface: Color
      Gets an ARGB integer representing this color in the sRGB colorspace.
      Specified by:
      toRgb in interface Color
    • getHue

      public float getHue()
    • getSaturation

      public float getSaturation()
    • getLuma

      public float getLuma()