Companion
Holds shared color constants. Every one but TRANSPARENT is opaque, with each channel either full or zero, except GRAY, whose channels are all 0x80.
Samples
assertPrints(Color.BLACK, "Color(#000000ff)")
assertPrints(Color.RED, "Color(#ff0000ff)")
assertPrints(Color.YELLOW.green, "1.0")
assertPrints(Color.GRAY, "Color(#808080ff)")
assertPrints(Color.CYAN.withAlpha(0.5f), "Color(#00ffff80)")Content copied to clipboard