Groovy makra v Openu - přílohy

Color

Konstanty barev pro vrácení v metodách

návrat je následující:

nebo

Dostupné konstanty ve třídě Color:

public static final Color white = new Color(255, 255, 255);

public static final Color WHITE = white;

public static final Color lightGray = new Color(192, 192, 192);

public static final Color LIGHT_GRAY = lightGray;

public static final Color gray = new Color(128, 128, 128);

public static final Color GRAY = gray;

public static final Color darkGray = new Color(64, 64, 64);

public static final Color DARK_GRAY = darkGray;

public static final Color black = new Color(0, 0, 0);

public static final Color BLACK = black;

public static final Color red = new Color(255, 0, 0);

public static final Color RED = red;

public static final Color pink = new Color(255, 175, 175);

public static final Color PINK = pink;

public static final Color orange = new Color(255, 200, 0);

public static final Color ORANGE = orange;

public static final Color yellow = new Color(255, 255, 0);

public static final Color YELLOW = yellow;

public static final Color green = new Color(0, 255, 0);

public static final Color GREEN = green;

public static final Color magenta = new Color(255, 0, 255);

public static final Color MAGENTA = magenta;

public static final Color cyan = new Color(0, 255, 255);

public static final Color CYAN = cyan;

public static final Color blue = new Color(0, 0, 255);

public static final Color BLUE = blue;