Skip to content
gchudnov edited this page Nov 20, 2014 · 5 revisions

ColorF

A color may be represented with floating point values using colorF data type.

  • Each channel value has a range of 0.0 to 1.0.
  • An alpha channel value ranges from 0.0 to 1.0. The default value is 1.0.
    • 0.0 represents a fully transparent color
    • 1.0 represents a fully opaque color.
  colorF c1(0.2, 0.6, 0.8); // r,g,b; a=1.0
Clone this wiki locally