Class Palette.Variant

  • Enclosing class:
    Palette

    public static final class Palette.Variant
    extends java.lang.Object
    • Method Detail

      • fromCode

        public Settings.Colour fromCode​(char code)
        Returns one of the colours in the variant, specified by code.
        Parameters:
        code - the case-insensitive code
        Returns:
        the matching colour
        Throws:
        java.lang.IllegalArgumentException - if the code is invalid
      • get

        public Settings.Colour get​(int i)
        Returns a colour by index instead of by name.
        Parameters:
        i - the index
        Returns:
        the matching colour
        Throws:
        java.lang.IllegalArgumentException - if the code is invalid