O'Reilly logo

Getting Started With JUCE by Martin Robinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Specifying colors

Colors in JUCE are handled by the Colour and Colours classes (note the British spelling of these two class names):

  • The Colour class stores a 32-bit color with 8-bit alpha, red, green, and blue values (ARGB). A Colour object may be initialized from other formats (for example, using floating point values, or values in the HSV format).
  • The Colour class includes a number of utilities for creating new colors from existing ones, for example, by modifying the alpha channel, changing only the brightness or finding a suitable contrasting color.
  • The Colours class is a collection of static Colour instances (for example, Colour::red, Colour::cyan). These are based broadly on the naming scheme of colors in the HyperText Markup Language (HTML ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required