Class Palette

java.lang.Object
com.github.tommyettinger.textra.utils.Palette

public final class Palette
extends java.lang.Object
Combines 50 colors chosen to be generally distinct with the 34 colors libGDX defines in Colors. Some colors here are duplicates, and there are also aliases to part of the group of 50 for convenience. All colors are defined as RGBA8888 ints with extensive JavaDocs. The colors from libGDX are in ALL_CAPS, while the colors defined here first are in lowercase.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static com.badlogic.gdx.utils.ObjectIntMap<java.lang.String> ALIASES
    Stores alternative names for colors in NAMED, like "grey" as an alias for GRAY or "gold" as an alias for saffron.
    static int apricot
    This color constant "apricot" has RGBA8888 code FFA828FF, R 1.0, G 0.65882355, B 0.15686275, A 1.0, hue 0.09922481, saturation 0.84313726, and lightness 0.57843137.
    static int black
    This color constant "black" has RGBA8888 code 000000FF, R 0.0, G 0.0, B 0.0, A 1.0, hue 0.0, saturation 0.0, and lightness 0.0.
    static int BLACK
    This color constant "BLACK" has RGBA8888 code 000000FF, R 0.0, G 0.0, B 0.0, A 1.0, hue 0.0, saturation 0.0, and lightness 0.0.
    static int blue
    This color constant "blue" has RGBA8888 code 0000FFFF, R 0.0, G 0.0, B 1.0, A 1.0, hue 0.6666667, saturation 1.0, and lightness 0.5.
    static int BLUE
    This color constant "BLUE" has RGBA8888 code 0000FFFF, R 0.0, G 0.0, B 1.0, A 1.0, hue 0.6666667, saturation 1.0, and lightness 0.5.
    static int brick
    This color constant "brick" has RGBA8888 code D5524AFF, R 0.8352941, G 0.32156864, B 0.2901961, A 1.0, hue 0.009592325, saturation 0.54509807, and lightness 0.5627451.
    static int bronze
    This color constant "bronze" has RGBA8888 code CE8E31FF, R 0.80784315, G 0.5568628, B 0.19215687, A 1.0, hue 0.09872612, saturation 0.6156863, and lightness 0.49999997.
    static int brown
    This color constant "brown" has RGBA8888 code 8F573BFF, R 0.56078434, G 0.34117648, B 0.23137255, A 1.0, hue 0.055555552, saturation 0.3294118, and lightness 0.39607844.
    static int BROWN
    This color constant "BROWN" has RGBA8888 code 8B4513FF, R 0.54509807, G 0.27058825, B 0.07450981, A 1.0, hue 0.06944444, saturation 0.47058827, and lightness 0.30980393.
    static int butter
    This color constant "butter" has RGBA8888 code FFF288FF, R 1.0, G 0.9490196, B 0.53333336, A 1.0, hue 0.14845939, saturation 0.46666664, and lightness 0.76666665.
    static int cactus
    This color constant "cactus" has RGBA8888 code 30A000FF, R 0.1882353, G 0.627451, B 0.0, A 1.0, hue 0.28333336, saturation 0.627451, and lightness 0.3137255.
    static int celery
    This color constant "celery" has RGBA8888 code 7DFF73FF, R 0.49019608, G 1.0, B 0.4509804, A 1.0, hue 0.32142857, saturation 0.5490196, and lightness 0.7254902.
    static int chartreuse
    This color constant "chartreuse" has RGBA8888 code C8FF41FF, R 0.78431374, G 1.0, B 0.25490198, A 1.0, hue 0.21491227, saturation 0.745098, and lightness 0.627451.
    static int CHARTREUSE
    This color constant "CHARTREUSE" has RGBA8888 code 7FFF00FF, R 0.49803922, G 1.0, B 0.0, A 1.0, hue 0.2503268, saturation 1.0, and lightness 0.5.
    static int chocolate
    This color constant "chocolate" has RGBA8888 code 683818FF, R 0.40784314, G 0.21960784, B 0.09411765, A 1.0, hue 0.066666655, saturation 0.3137255, and lightness 0.25098038.
    static int cinnamon
    This color constant "cinnamon" has RGBA8888 code D2691DFF, R 0.8235294, G 0.4117647, B 0.11372549, A 1.0, hue 0.06998159, saturation 0.70980394, and lightness 0.46862742.
    static int CLEAR
    This color constant "CLEAR" has RGBA8888 code 00000000, R 0.0, G 0.0, B 0.0, A 0.0, hue 0.0, saturation 0.0, and lightness 0.0.
    static int cobalt
    This color constant "cobalt" has RGBA8888 code 0046ABFF, R 0.0, G 0.27450982, B 0.67058825, A 1.0, hue 0.5984406, saturation 0.67058825, and lightness 0.33529413.
    static int CORAL
    This color constant "CORAL" has RGBA8888 code FF7F50FF, R 1.0, G 0.49803922, B 0.3137255, A 1.0, hue 0.0447619, saturation 0.6862745, and lightness 0.65686274.
    static int cyan
    This color constant "cyan" has RGBA8888 code 00FFFFFF, R 0.0, G 1.0, B 1.0, A 1.0, hue 0.5, saturation 1.0, and lightness 0.5.
    static int CYAN
    This color constant "CYAN" has RGBA8888 code 00FFFFFF, R 0.0, G 1.0, B 1.0, A 1.0, hue 0.5, saturation 1.0, and lightness 0.5.
    static int DARK_GRAY
    This color constant "DARK_GRAY" has RGBA8888 code 3F3F3FFF, R 0.24705882, G 0.24705882, B 0.24705882, A 1.0, hue 0.0, saturation 0.0, and lightness 0.24705882.
    static int denim
    This color constant "denim" has RGBA8888 code 3088B8FF, R 0.1882353, G 0.53333336, B 0.72156864, A 1.0, hue 0.5588235, saturation 0.53333336, and lightness 0.45490196.
    static int ember
    This color constant "ember" has RGBA8888 code F55A32FF, R 0.9607843, G 0.3529412, B 0.19607843, A 1.0, hue 0.034188036, saturation 0.7647059, and lightness 0.5784313.
    static int fern
    This color constant "fern" has RGBA8888 code 4E7942FF, R 0.30588236, G 0.4745098, B 0.25882354, A 1.0, hue 0.2969697, saturation 0.21568626, and lightness 0.36666664.
    static int FIREBRICK
    This color constant "FIREBRICK" has RGBA8888 code B22222FF, R 0.69803923, G 0.13333334, B 0.13333334, A 1.0, hue 0.0, saturation 0.5647059, and lightness 0.41568628.
    static int FOREST
    This color constant "FOREST" has RGBA8888 code 228B22FF, R 0.13333334, G 0.54509807, B 0.13333334, A 1.0, hue 0.33333334, saturation 0.41176474, and lightness 0.33921573.
    static int GOLD
    This color constant "GOLD" has RGBA8888 code FFD700FF, R 1.0, G 0.84313726, B 0.0, A 1.0, hue 0.14052288, saturation 1.0, and lightness 0.5.
    static int GOLDENROD
    This color constant "GOLDENROD" has RGBA8888 code DAA520FF, R 0.85490197, G 0.64705884, B 0.1254902, A 1.0, hue 0.119175635, saturation 0.7294118, and lightness 0.49019608.
    static int gray
    This color constant "gray" has RGBA8888 code 808080FF, R 0.5019608, G 0.5019608, B 0.5019608, A 1.0, hue 0.0, saturation 0.0, and lightness 0.5019608.
    static int GRAY
    This color constant "GRAY" has RGBA8888 code 7F7F7FFF, R 0.49803922, G 0.49803922, B 0.49803922, A 1.0, hue 0.0, saturation 0.0, and lightness 0.49803922.
    static int green
    This color constant "green" has RGBA8888 code 00FF00FF, R 0.0, G 1.0, B 0.0, A 1.0, hue 0.33333334, saturation 1.0, and lightness 0.5.
    static int GREEN
    This color constant "GREEN" has RGBA8888 code 00FF00FF, R 0.0, G 1.0, B 0.0, A 1.0, hue 0.33333334, saturation 1.0, and lightness 0.5.
    static int indigo
    This color constant "indigo" has RGBA8888 code 520FE0FF, R 0.32156864, G 0.05882353, B 0.8784314, A 1.0, hue 0.7200957, saturation 0.81960785, and lightness 0.46862745.
    static int jade
    This color constant "jade" has RGBA8888 code 3FBF3FFF, R 0.24705882, G 0.7490196, B 0.24705882, A 1.0, hue 0.33333334, saturation 0.5019608, and lightness 0.49803922.
    static int lavender
    This color constant "lavender" has RGBA8888 code B991FFFF, R 0.7254902, G 0.5686275, B 1.0, A 1.0, hue 0.72727275, saturation 0.43137252, and lightness 0.78431374.
    static int LIGHT_GRAY
    This color constant "LIGHT_GRAY" has RGBA8888 code BFBFBFFF, R 0.7490196, G 0.7490196, B 0.7490196, A 1.0, hue 0.0, saturation 0.0, and lightness 0.7490196.
    static int lime
    This color constant "lime" has RGBA8888 code 93D300FF, R 0.5764706, G 0.827451, B 0.0, A 1.0, hue 0.21721959, saturation 0.827451, and lightness 0.4137255.
    static int LIME
    This color constant "LIME" has RGBA8888 code 32CD32FF, R 0.19607843, G 0.8039216, B 0.19607843, A 1.0, hue 0.33333334, saturation 0.60784316, and lightness 0.5.
    static com.badlogic.gdx.utils.IntArray LIST  
    static int magenta
    This color constant "magenta" has RGBA8888 code F500F5FF, R 0.9607843, G 0.0, B 0.9607843, A 1.0, hue 0.8333333, saturation 0.9607843, and lightness 0.48039216.
    static int MAGENTA
    This color constant "MAGENTA" has RGBA8888 code FF00FFFF, R 1.0, G 0.0, B 1.0, A 1.0, hue 0.8333333, saturation 1.0, and lightness 0.5.
    static int MAROON
    This color constant "MAROON" has RGBA8888 code B03060FF, R 0.6901961, G 0.1882353, B 0.3764706, A 1.0, hue 0.9375, saturation 0.5019608, and lightness 0.4392157.
    static int mauve
    This color constant "mauve" has RGBA8888 code AB73ABFF, R 0.67058825, G 0.4509804, B 0.67058825, A 1.0, hue 0.8333334, saturation 0.21960786, and lightness 0.56078434.
    static int mint
    This color constant "mint" has RGBA8888 code 7FFFD4FF, R 0.49803922, G 1.0, B 0.83137256, A 1.0, hue 0.44401044, saturation 0.50196075, and lightness 0.7490196.
    static int moss
    This color constant "moss" has RGBA8888 code 204608FF, R 0.1254902, G 0.27450982, B 0.03137255, A 1.0, hue 0.26881722, saturation 0.24313727, and lightness 0.15294118.
    static com.badlogic.gdx.utils.ObjectIntMap<java.lang.String> NAMED  
    static com.badlogic.gdx.utils.Array<java.lang.String> NAMES
    All names for colors in this palette, in alphabetical order.
    static int navy
    This color constant "navy" has RGBA8888 code 000080FF, R 0.0, G 0.0, B 0.5019608, A 1.0, hue 0.6666667, saturation 0.5019608, and lightness 0.2509804.
    static int NAVY
    This color constant "NAVY" has RGBA8888 code 00007FFF, R 0.0, G 0.0, B 0.49803922, A 1.0, hue 0.6666667, saturation 0.49803922, and lightness 0.24901961.
    static int olive
    This color constant "olive" has RGBA8888 code 818000FF, R 0.5058824, G 0.5019608, B 0.0, A 1.0, hue 0.16537468, saturation 0.5058824, and lightness 0.2529412.
    static int OLIVE
    This color constant "OLIVE" has RGBA8888 code 6B8E23FF, R 0.41960785, G 0.5568628, B 0.13725491, A 1.0, hue 0.22118384, saturation 0.41960788, and lightness 0.34705883.
    static int orange
    This color constant "orange" has RGBA8888 code FF7F00FF, R 1.0, G 0.49803922, B 0.0, A 1.0, hue 0.08300654, saturation 1.0, and lightness 0.5.
    static int ORANGE
    This color constant "ORANGE" has RGBA8888 code FFA500FF, R 1.0, G 0.64705884, B 0.0, A 1.0, hue 0.10784314, saturation 1.0, and lightness 0.5.
    static int peach
    This color constant "peach" has RGBA8888 code FFBF81FF, R 1.0, G 0.7490196, B 0.5058824, A 1.0, hue 0.08201058, saturation 0.49411762, and lightness 0.7529412.
    static int pear
    This color constant "pear" has RGBA8888 code D3E330FF, R 0.827451, G 0.8901961, B 0.1882353, A 1.0, hue 0.18156426, saturation 0.7019608, and lightness 0.5392157.
    static int pink
    This color constant "pink" has RGBA8888 code FFA0E0FF, R 1.0, G 0.627451, B 0.8784314, A 1.0, hue 0.8877193, saturation 0.372549, and lightness 0.8137255.
    static int PINK
    This color constant "PINK" has RGBA8888 code FF69B4FF, R 1.0, G 0.4117647, B 0.7058824, A 1.0, hue 0.9166666, saturation 0.58823526, and lightness 0.7058824.
    static int plum
    This color constant "plum" has RGBA8888 code BE0DC6FF, R 0.74509805, G 0.050980393, B 0.7764706, A 1.0, hue 0.82612616, saturation 0.7254902, and lightness 0.4137255.
    static int purple
    This color constant "purple" has RGBA8888 code C000FFFF, R 0.7529412, G 0.0, B 1.0, A 1.0, hue 0.7921569, saturation 1.0, and lightness 0.5.
    static int PURPLE
    This color constant "PURPLE" has RGBA8888 code A020F0FF, R 0.627451, G 0.1254902, B 0.9411765, A 1.0, hue 0.7692308, saturation 0.8156863, and lightness 0.53333336.
    static int raspberry
    This color constant "raspberry" has RGBA8888 code 911437FF, R 0.5686275, G 0.078431375, B 0.21568628, A 1.0, hue 0.9533333, saturation 0.4901961, and lightness 0.32352945.
    static int red
    This color constant "red" has RGBA8888 code FF0000FF, R 1.0, G 0.0, B 0.0, A 1.0, hue 0.0, saturation 1.0, and lightness 0.5.
    static int RED
    This color constant "RED" has RGBA8888 code FF0000FF, R 1.0, G 0.0, B 0.0, A 1.0, hue 0.0, saturation 1.0, and lightness 0.5.
    static int rose
    This color constant "rose" has RGBA8888 code E61E78FF, R 0.9019608, G 0.11764706, B 0.47058824, A 1.0, hue 0.925, saturation 0.78431374, and lightness 0.5098039.
    static int ROYAL
    This color constant "ROYAL" has RGBA8888 code 4169E1FF, R 0.25490198, G 0.4117647, B 0.88235295, A 1.0, hue 0.625, saturation 0.62745094, and lightness 0.5686275.
    static int saffron
    This color constant "saffron" has RGBA8888 code FFD510FF, R 1.0, G 0.8352941, B 0.0627451, A 1.0, hue 0.13737796, saturation 0.9372549, and lightness 0.53137255.
    static int sage
    This color constant "sage" has RGBA8888 code ABE3C5FF, R 0.67058825, G 0.8901961, B 0.77254903, A 1.0, hue 0.4107143, saturation 0.21960783, and lightness 0.78039217.
    static int salmon
    This color constant "salmon" has RGBA8888 code FF6262FF, R 1.0, G 0.38431373, B 0.38431373, A 1.0, hue 0.0, saturation 0.6156863, and lightness 0.69215685.
    static int SALMON
    This color constant "SALMON" has RGBA8888 code FA8072FF, R 0.98039216, G 0.5019608, B 0.44705883, A 1.0, hue 0.017156873, saturation 0.5333333, and lightness 0.7137255.
    static int SCARLET
    This color constant "SCARLET" has RGBA8888 code FF341CFF, R 1.0, G 0.20392157, B 0.10980392, A 1.0, hue 0.017621147, saturation 0.8901961, and lightness 0.55490196.
    static int silver
    This color constant "silver" has RGBA8888 code B6B6B6FF, R 0.7137255, G 0.7137255, B 0.7137255, A 1.0, hue 0.0, saturation 0.0, and lightness 0.7137255.
    static int sky
    This color constant "sky" has RGBA8888 code 10C0E0FF, R 0.0627451, G 0.7529412, B 0.8784314, A 1.0, hue 0.5256411, saturation 0.8156863, and lightness 0.47058824.
    static int SKY
    This color constant "SKY" has RGBA8888 code 87CEEBFF, R 0.5294118, G 0.80784315, B 0.92156863, A 1.0, hue 0.54833335, saturation 0.39215684, and lightness 0.7254902.
    static int SLATE
    This color constant "SLATE" has RGBA8888 code 708090FF, R 0.4392157, G 0.5019608, B 0.5647059, A 1.0, hue 0.5833333, saturation 0.12549022, and lightness 0.5019608.
    static int tan
    This color constant "tan" has RGBA8888 code D2B48CFF, R 0.8235294, G 0.7058824, B 0.54901963, A 1.0, hue 0.0952381, saturation 0.2745098, and lightness 0.6862745.
    static int TAN
    This color constant "TAN" has RGBA8888 code D2B48CFF, R 0.8235294, G 0.7058824, B 0.54901963, A 1.0, hue 0.0952381, saturation 0.2745098, and lightness 0.6862745.
    static int teal
    This color constant "teal" has RGBA8888 code 007F7FFF, R 0.0, G 0.49803922, B 0.49803922, A 1.0, hue 0.5, saturation 0.49803922, and lightness 0.24901961.
    static int TEAL
    This color constant "TEAL" has RGBA8888 code 007F7FFF, R 0.0, G 0.49803922, B 0.49803922, A 1.0, hue 0.5, saturation 0.49803922, and lightness 0.24901961.
    static int transparent
    This color constant "transparent" has RGBA8888 code 00000000, R 0.0, G 0.0, B 0.0, A 0.0, hue 0.0, saturation 0.0, and lightness 0.0.
    static int turquoise
    This color constant "turquoise" has RGBA8888 code 2ED6C9FF, R 0.18039216, G 0.8392157, B 0.7882353, A 1.0, hue 0.48710316, saturation 0.65882355, and lightness 0.5098039.
    static int violet
    This color constant "violet" has RGBA8888 code 9040EFFF, R 0.5647059, G 0.2509804, B 0.9372549, A 1.0, hue 0.74285716, saturation 0.6862745, and lightness 0.59411764.
    static int VIOLET
    This color constant "VIOLET" has RGBA8888 code EE82EEFF, R 0.93333334, G 0.50980395, B 0.93333334, A 1.0, hue 0.8333333, saturation 0.4235294, and lightness 0.72156864.
    static int white
    This color constant "white" has RGBA8888 code FFFFFFFF, R 1.0, G 1.0, B 1.0, A 1.0, hue 0.0, saturation 0.0, and lightness 1.0.
    static int WHITE
    This color constant "WHITE" has RGBA8888 code FFFFFFFF, R 1.0, G 1.0, B 1.0, A 1.0, hue 0.0, saturation 0.0, and lightness 1.0.
    static int yellow
    This color constant "yellow" has RGBA8888 code FFFF00FF, R 1.0, G 1.0, B 0.0, A 1.0, hue 0.16666667, saturation 1.0, and lightness 0.5.
    static int YELLOW
    This color constant "YELLOW" has RGBA8888 code FFFF00FF, R 1.0, G 1.0, B 0.0, A 1.0, hue 0.16666667, saturation 1.0, and lightness 0.5.
  • Method Summary

    Modifier and Type Method Description
    static boolean addColor​(java.lang.String name, int rgba8888)
    Modifies the Palette by adding a color with its name.
    static void appendToKnownColors()
    Appends standard RGBA Color instances to the map in Colors, using the names in NAMES (which are either "lowercased" instead of "ALL_UPPER_CASE", or are already present in Colors).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ALIASES

      public static final com.badlogic.gdx.utils.ObjectIntMap<java.lang.String> ALIASES
      Stores alternative names for colors in NAMED, like "grey" as an alias for GRAY or "gold" as an alias for saffron. Currently, the list of aliases is as follows: These aliases are duplicated in NAMES. They are primarily there so blind attempts to name a color might still work.
    • NAMED

      public static final com.badlogic.gdx.utils.ObjectIntMap<java.lang.String> NAMED
    • LIST

      public static final com.badlogic.gdx.utils.IntArray LIST
    • transparent

      public static final int transparent
      This color constant "transparent" has RGBA8888 code 00000000, R 0.0, G 0.0, B 0.0, A 0.0, hue 0.0, saturation 0.0, and lightness 0.0.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • black

      public static final int black
      This color constant "black" has RGBA8888 code 000000FF, R 0.0, G 0.0, B 0.0, A 1.0, hue 0.0, saturation 0.0, and lightness 0.0.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • gray

      public static final int gray
      This color constant "gray" has RGBA8888 code 808080FF, R 0.5019608, G 0.5019608, B 0.5019608, A 1.0, hue 0.0, saturation 0.0, and lightness 0.5019608.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • silver

      public static final int silver
      This color constant "silver" has RGBA8888 code B6B6B6FF, R 0.7137255, G 0.7137255, B 0.7137255, A 1.0, hue 0.0, saturation 0.0, and lightness 0.7137255.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • white

      public static final int white
      This color constant "white" has RGBA8888 code FFFFFFFF, R 1.0, G 1.0, B 1.0, A 1.0, hue 0.0, saturation 0.0, and lightness 1.0.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • red

      public static final int red
      This color constant "red" has RGBA8888 code FF0000FF, R 1.0, G 0.0, B 0.0, A 1.0, hue 0.0, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • orange

      public static final int orange
      This color constant "orange" has RGBA8888 code FF7F00FF, R 1.0, G 0.49803922, B 0.0, A 1.0, hue 0.08300654, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • yellow

      public static final int yellow
      This color constant "yellow" has RGBA8888 code FFFF00FF, R 1.0, G 1.0, B 0.0, A 1.0, hue 0.16666667, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • green

      public static final int green
      This color constant "green" has RGBA8888 code 00FF00FF, R 0.0, G 1.0, B 0.0, A 1.0, hue 0.33333334, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • blue

      public static final int blue
      This color constant "blue" has RGBA8888 code 0000FFFF, R 0.0, G 0.0, B 1.0, A 1.0, hue 0.6666667, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • indigo

      public static final int indigo
      This color constant "indigo" has RGBA8888 code 520FE0FF, R 0.32156864, G 0.05882353, B 0.8784314, A 1.0, hue 0.7200957, saturation 0.81960785, and lightness 0.46862745.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • violet

      public static final int violet
      This color constant "violet" has RGBA8888 code 9040EFFF, R 0.5647059, G 0.2509804, B 0.9372549, A 1.0, hue 0.74285716, saturation 0.6862745, and lightness 0.59411764.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • purple

      public static final int purple
      This color constant "purple" has RGBA8888 code C000FFFF, R 0.7529412, G 0.0, B 1.0, A 1.0, hue 0.7921569, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • brown

      public static final int brown
      This color constant "brown" has RGBA8888 code 8F573BFF, R 0.56078434, G 0.34117648, B 0.23137255, A 1.0, hue 0.055555552, saturation 0.3294118, and lightness 0.39607844.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • pink

      public static final int pink
      This color constant "pink" has RGBA8888 code FFA0E0FF, R 1.0, G 0.627451, B 0.8784314, A 1.0, hue 0.8877193, saturation 0.372549, and lightness 0.8137255.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • magenta

      public static final int magenta
      This color constant "magenta" has RGBA8888 code F500F5FF, R 0.9607843, G 0.0, B 0.9607843, A 1.0, hue 0.8333333, saturation 0.9607843, and lightness 0.48039216.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • brick

      public static final int brick
      This color constant "brick" has RGBA8888 code D5524AFF, R 0.8352941, G 0.32156864, B 0.2901961, A 1.0, hue 0.009592325, saturation 0.54509807, and lightness 0.5627451.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • ember

      public static final int ember
      This color constant "ember" has RGBA8888 code F55A32FF, R 0.9607843, G 0.3529412, B 0.19607843, A 1.0, hue 0.034188036, saturation 0.7647059, and lightness 0.5784313.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • salmon

      public static final int salmon
      This color constant "salmon" has RGBA8888 code FF6262FF, R 1.0, G 0.38431373, B 0.38431373, A 1.0, hue 0.0, saturation 0.6156863, and lightness 0.69215685.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • chocolate

      public static final int chocolate
      This color constant "chocolate" has RGBA8888 code 683818FF, R 0.40784314, G 0.21960784, B 0.09411765, A 1.0, hue 0.066666655, saturation 0.3137255, and lightness 0.25098038.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • tan

      public static final int tan
      This color constant "tan" has RGBA8888 code D2B48CFF, R 0.8235294, G 0.7058824, B 0.54901963, A 1.0, hue 0.0952381, saturation 0.2745098, and lightness 0.6862745.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • bronze

      public static final int bronze
      This color constant "bronze" has RGBA8888 code CE8E31FF, R 0.80784315, G 0.5568628, B 0.19215687, A 1.0, hue 0.09872612, saturation 0.6156863, and lightness 0.49999997.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • cinnamon

      public static final int cinnamon
      This color constant "cinnamon" has RGBA8888 code D2691DFF, R 0.8235294, G 0.4117647, B 0.11372549, A 1.0, hue 0.06998159, saturation 0.70980394, and lightness 0.46862742.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • apricot

      public static final int apricot
      This color constant "apricot" has RGBA8888 code FFA828FF, R 1.0, G 0.65882355, B 0.15686275, A 1.0, hue 0.09922481, saturation 0.84313726, and lightness 0.57843137.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • peach

      public static final int peach
      This color constant "peach" has RGBA8888 code FFBF81FF, R 1.0, G 0.7490196, B 0.5058824, A 1.0, hue 0.08201058, saturation 0.49411762, and lightness 0.7529412.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • pear

      public static final int pear
      This color constant "pear" has RGBA8888 code D3E330FF, R 0.827451, G 0.8901961, B 0.1882353, A 1.0, hue 0.18156426, saturation 0.7019608, and lightness 0.5392157.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • saffron

      public static final int saffron
      This color constant "saffron" has RGBA8888 code FFD510FF, R 1.0, G 0.8352941, B 0.0627451, A 1.0, hue 0.13737796, saturation 0.9372549, and lightness 0.53137255.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • butter

      public static final int butter
      This color constant "butter" has RGBA8888 code FFF288FF, R 1.0, G 0.9490196, B 0.53333336, A 1.0, hue 0.14845939, saturation 0.46666664, and lightness 0.76666665.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • chartreuse

      public static final int chartreuse
      This color constant "chartreuse" has RGBA8888 code C8FF41FF, R 0.78431374, G 1.0, B 0.25490198, A 1.0, hue 0.21491227, saturation 0.745098, and lightness 0.627451.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • cactus

      public static final int cactus
      This color constant "cactus" has RGBA8888 code 30A000FF, R 0.1882353, G 0.627451, B 0.0, A 1.0, hue 0.28333336, saturation 0.627451, and lightness 0.3137255.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • lime

      public static final int lime
      This color constant "lime" has RGBA8888 code 93D300FF, R 0.5764706, G 0.827451, B 0.0, A 1.0, hue 0.21721959, saturation 0.827451, and lightness 0.4137255.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • olive

      public static final int olive
      This color constant "olive" has RGBA8888 code 818000FF, R 0.5058824, G 0.5019608, B 0.0, A 1.0, hue 0.16537468, saturation 0.5058824, and lightness 0.2529412.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • fern

      public static final int fern
      This color constant "fern" has RGBA8888 code 4E7942FF, R 0.30588236, G 0.4745098, B 0.25882354, A 1.0, hue 0.2969697, saturation 0.21568626, and lightness 0.36666664.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • moss

      public static final int moss
      This color constant "moss" has RGBA8888 code 204608FF, R 0.1254902, G 0.27450982, B 0.03137255, A 1.0, hue 0.26881722, saturation 0.24313727, and lightness 0.15294118.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • celery

      public static final int celery
      This color constant "celery" has RGBA8888 code 7DFF73FF, R 0.49019608, G 1.0, B 0.4509804, A 1.0, hue 0.32142857, saturation 0.5490196, and lightness 0.7254902.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • sage

      public static final int sage
      This color constant "sage" has RGBA8888 code ABE3C5FF, R 0.67058825, G 0.8901961, B 0.77254903, A 1.0, hue 0.4107143, saturation 0.21960783, and lightness 0.78039217.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • jade

      public static final int jade
      This color constant "jade" has RGBA8888 code 3FBF3FFF, R 0.24705882, G 0.7490196, B 0.24705882, A 1.0, hue 0.33333334, saturation 0.5019608, and lightness 0.49803922.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • cyan

      public static final int cyan
      This color constant "cyan" has RGBA8888 code 00FFFFFF, R 0.0, G 1.0, B 1.0, A 1.0, hue 0.5, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • mint

      public static final int mint
      This color constant "mint" has RGBA8888 code 7FFFD4FF, R 0.49803922, G 1.0, B 0.83137256, A 1.0, hue 0.44401044, saturation 0.50196075, and lightness 0.7490196.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • teal

      public static final int teal
      This color constant "teal" has RGBA8888 code 007F7FFF, R 0.0, G 0.49803922, B 0.49803922, A 1.0, hue 0.5, saturation 0.49803922, and lightness 0.24901961.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • turquoise

      public static final int turquoise
      This color constant "turquoise" has RGBA8888 code 2ED6C9FF, R 0.18039216, G 0.8392157, B 0.7882353, A 1.0, hue 0.48710316, saturation 0.65882355, and lightness 0.5098039.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • sky

      public static final int sky
      This color constant "sky" has RGBA8888 code 10C0E0FF, R 0.0627451, G 0.7529412, B 0.8784314, A 1.0, hue 0.5256411, saturation 0.8156863, and lightness 0.47058824.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • cobalt

      public static final int cobalt
      This color constant "cobalt" has RGBA8888 code 0046ABFF, R 0.0, G 0.27450982, B 0.67058825, A 1.0, hue 0.5984406, saturation 0.67058825, and lightness 0.33529413.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • denim

      public static final int denim
      This color constant "denim" has RGBA8888 code 3088B8FF, R 0.1882353, G 0.53333336, B 0.72156864, A 1.0, hue 0.5588235, saturation 0.53333336, and lightness 0.45490196.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • lavender

      public static final int lavender
      This color constant "lavender" has RGBA8888 code B991FFFF, R 0.7254902, G 0.5686275, B 1.0, A 1.0, hue 0.72727275, saturation 0.43137252, and lightness 0.78431374.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • plum

      public static final int plum
      This color constant "plum" has RGBA8888 code BE0DC6FF, R 0.74509805, G 0.050980393, B 0.7764706, A 1.0, hue 0.82612616, saturation 0.7254902, and lightness 0.4137255.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • mauve

      public static final int mauve
      This color constant "mauve" has RGBA8888 code AB73ABFF, R 0.67058825, G 0.4509804, B 0.67058825, A 1.0, hue 0.8333334, saturation 0.21960786, and lightness 0.56078434.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • rose

      public static final int rose
      This color constant "rose" has RGBA8888 code E61E78FF, R 0.9019608, G 0.11764706, B 0.47058824, A 1.0, hue 0.925, saturation 0.78431374, and lightness 0.5098039.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • raspberry

      public static final int raspberry
      This color constant "raspberry" has RGBA8888 code 911437FF, R 0.5686275, G 0.078431375, B 0.21568628, A 1.0, hue 0.9533333, saturation 0.4901961, and lightness 0.32352945.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • YELLOW

      public static final int YELLOW
      This color constant "YELLOW" has RGBA8888 code FFFF00FF, R 1.0, G 1.0, B 0.0, A 1.0, hue 0.16666667, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • BLUE

      public static final int BLUE
      This color constant "BLUE" has RGBA8888 code 0000FFFF, R 0.0, G 0.0, B 1.0, A 1.0, hue 0.6666667, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • GOLD

      public static final int GOLD
      This color constant "GOLD" has RGBA8888 code FFD700FF, R 1.0, G 0.84313726, B 0.0, A 1.0, hue 0.14052288, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • GRAY

      public static final int GRAY
      This color constant "GRAY" has RGBA8888 code 7F7F7FFF, R 0.49803922, G 0.49803922, B 0.49803922, A 1.0, hue 0.0, saturation 0.0, and lightness 0.49803922.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • ORANGE

      public static final int ORANGE
      This color constant "ORANGE" has RGBA8888 code FFA500FF, R 1.0, G 0.64705884, B 0.0, A 1.0, hue 0.10784314, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • MAGENTA

      public static final int MAGENTA
      This color constant "MAGENTA" has RGBA8888 code FF00FFFF, R 1.0, G 0.0, B 1.0, A 1.0, hue 0.8333333, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • FIREBRICK

      public static final int FIREBRICK
      This color constant "FIREBRICK" has RGBA8888 code B22222FF, R 0.69803923, G 0.13333334, B 0.13333334, A 1.0, hue 0.0, saturation 0.5647059, and lightness 0.41568628.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • SCARLET

      public static final int SCARLET
      This color constant "SCARLET" has RGBA8888 code FF341CFF, R 1.0, G 0.20392157, B 0.10980392, A 1.0, hue 0.017621147, saturation 0.8901961, and lightness 0.55490196.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • WHITE

      public static final int WHITE
      This color constant "WHITE" has RGBA8888 code FFFFFFFF, R 1.0, G 1.0, B 1.0, A 1.0, hue 0.0, saturation 0.0, and lightness 1.0.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • SKY

      public static final int SKY
      This color constant "SKY" has RGBA8888 code 87CEEBFF, R 0.5294118, G 0.80784315, B 0.92156863, A 1.0, hue 0.54833335, saturation 0.39215684, and lightness 0.7254902.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • FOREST

      public static final int FOREST
      This color constant "FOREST" has RGBA8888 code 228B22FF, R 0.13333334, G 0.54509807, B 0.13333334, A 1.0, hue 0.33333334, saturation 0.41176474, and lightness 0.33921573.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • GREEN

      public static final int GREEN
      This color constant "GREEN" has RGBA8888 code 00FF00FF, R 0.0, G 1.0, B 0.0, A 1.0, hue 0.33333334, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • CHARTREUSE

      public static final int CHARTREUSE
      This color constant "CHARTREUSE" has RGBA8888 code 7FFF00FF, R 0.49803922, G 1.0, B 0.0, A 1.0, hue 0.2503268, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • MAROON

      public static final int MAROON
      This color constant "MAROON" has RGBA8888 code B03060FF, R 0.6901961, G 0.1882353, B 0.3764706, A 1.0, hue 0.9375, saturation 0.5019608, and lightness 0.4392157.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • RED

      public static final int RED
      This color constant "RED" has RGBA8888 code FF0000FF, R 1.0, G 0.0, B 0.0, A 1.0, hue 0.0, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • CYAN

      public static final int CYAN
      This color constant "CYAN" has RGBA8888 code 00FFFFFF, R 0.0, G 1.0, B 1.0, A 1.0, hue 0.5, saturation 1.0, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • BLACK

      public static final int BLACK
      This color constant "BLACK" has RGBA8888 code 000000FF, R 0.0, G 0.0, B 0.0, A 1.0, hue 0.0, saturation 0.0, and lightness 0.0.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • VIOLET

      public static final int VIOLET
      This color constant "VIOLET" has RGBA8888 code EE82EEFF, R 0.93333334, G 0.50980395, B 0.93333334, A 1.0, hue 0.8333333, saturation 0.4235294, and lightness 0.72156864.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • CORAL

      public static final int CORAL
      This color constant "CORAL" has RGBA8888 code FF7F50FF, R 1.0, G 0.49803922, B 0.3137255, A 1.0, hue 0.0447619, saturation 0.6862745, and lightness 0.65686274.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • ROYAL

      public static final int ROYAL
      This color constant "ROYAL" has RGBA8888 code 4169E1FF, R 0.25490198, G 0.4117647, B 0.88235295, A 1.0, hue 0.625, saturation 0.62745094, and lightness 0.5686275.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • LIME

      public static final int LIME
      This color constant "LIME" has RGBA8888 code 32CD32FF, R 0.19607843, G 0.8039216, B 0.19607843, A 1.0, hue 0.33333334, saturation 0.60784316, and lightness 0.5.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • CLEAR

      public static final int CLEAR
      This color constant "CLEAR" has RGBA8888 code 00000000, R 0.0, G 0.0, B 0.0, A 0.0, hue 0.0, saturation 0.0, and lightness 0.0.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • LIGHT_GRAY

      public static final int LIGHT_GRAY
      This color constant "LIGHT_GRAY" has RGBA8888 code BFBFBFFF, R 0.7490196, G 0.7490196, B 0.7490196, A 1.0, hue 0.0, saturation 0.0, and lightness 0.7490196.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • BROWN

      public static final int BROWN
      This color constant "BROWN" has RGBA8888 code 8B4513FF, R 0.54509807, G 0.27058825, B 0.07450981, A 1.0, hue 0.06944444, saturation 0.47058827, and lightness 0.30980393.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • SALMON

      public static final int SALMON
      This color constant "SALMON" has RGBA8888 code FA8072FF, R 0.98039216, G 0.5019608, B 0.44705883, A 1.0, hue 0.017156873, saturation 0.5333333, and lightness 0.7137255.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • PURPLE

      public static final int PURPLE
      This color constant "PURPLE" has RGBA8888 code A020F0FF, R 0.627451, G 0.1254902, B 0.9411765, A 1.0, hue 0.7692308, saturation 0.8156863, and lightness 0.53333336.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • DARK_GRAY

      public static final int DARK_GRAY
      This color constant "DARK_GRAY" has RGBA8888 code 3F3F3FFF, R 0.24705882, G 0.24705882, B 0.24705882, A 1.0, hue 0.0, saturation 0.0, and lightness 0.24705882.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • SLATE

      public static final int SLATE
      This color constant "SLATE" has RGBA8888 code 708090FF, R 0.4392157, G 0.5019608, B 0.5647059, A 1.0, hue 0.5833333, saturation 0.12549022, and lightness 0.5019608.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • TAN

      public static final int TAN
      This color constant "TAN" has RGBA8888 code D2B48CFF, R 0.8235294, G 0.7058824, B 0.54901963, A 1.0, hue 0.0952381, saturation 0.2745098, and lightness 0.6862745.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • PINK

      public static final int PINK
      This color constant "PINK" has RGBA8888 code FF69B4FF, R 1.0, G 0.4117647, B 0.7058824, A 1.0, hue 0.9166666, saturation 0.58823526, and lightness 0.7058824.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • OLIVE

      public static final int OLIVE
      This color constant "OLIVE" has RGBA8888 code 6B8E23FF, R 0.41960785, G 0.5568628, B 0.13725491, A 1.0, hue 0.22118384, saturation 0.41960788, and lightness 0.34705883.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • TEAL

      public static final int TEAL
      This color constant "TEAL" has RGBA8888 code 007F7FFF, R 0.0, G 0.49803922, B 0.49803922, A 1.0, hue 0.5, saturation 0.49803922, and lightness 0.24901961.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • GOLDENROD

      public static final int GOLDENROD
      This color constant "GOLDENROD" has RGBA8888 code DAA520FF, R 0.85490197, G 0.64705884, B 0.1254902, A 1.0, hue 0.119175635, saturation 0.7294118, and lightness 0.49019608.
                    @ 
           @  @  @  @ 
                    @ 
       
      See Also:
      Constant Field Values
    • NAMES

      public static final com.badlogic.gdx.utils.Array<java.lang.String> NAMES
      All names for colors in this palette, in alphabetical order. You can fetch the corresponding packed float color by looking up a name in NAMED. This includes aliases, since those can be looked up like other names.
  • Method Details

    • appendToKnownColors

      public static void appendToKnownColors()
      Appends standard RGBA Color instances to the map in Colors, using the names in NAMES (which are either "lowercased" instead of "ALL_UPPER_CASE", or are already present in Colors). This doesn't need any changes to be made to Colors in order for it to be compatible; just remember that the colors originally in Colors use "UPPER_CASE" and these may also use "lowercase" with no spaces.
    • addColor

      public static boolean addColor​(java.lang.String name, int rgba8888)
      Modifies the Palette by adding a color with its name.
      Parameters:
      name - the name of the color to add; should not be already present in NAMED
      rgba8888 - an int color as RGBA8888 to associate with the given name
      Returns:
      true if this entered a new color, or false if name was already present (so nothing was added).