RGBColor

RGBColor[red,green,blue]
is a graphics directive specifying that objects that follow are to be displayed in the color given.

RGBColor[r,g,b,a]
specifies opacity a.

DetailsDetails

  • RGBColor is a color space defined by three additive primaries red, green, and blue, typically used in electronic display devices.
  • Red, green, and blue color intensities outside the range 0 to 1 will be clipped, as will opacities. »
  • On monochrome output devices, a gray level based on the average of the color intensities is used.
  • ColorConvert can be used to convert RGBColor to other color spaces.
  • The alternative forms RGBColor[{r,g,b}] and RGBColor[{r,g,b,a}] can also be used. »
  • Style[expr,RGBColor[]] specifies that expr should be displayed with the specified color. »
  • For 3D surfaces, explicit RGBColor directives define surface colors; the final shading depends on lighting and contributions from specularity and glow. »
  • Glow[RGBColor[]] specifies color independent of lighting. »
  • RGBColor[r,g,b,a] is equivalent to Directive[RGBColor[r,g,b],Opacity[α]]. »
  • If no opacity has been specified, RGBColor[r,g,b] is equivalent to RGBColor[r,g,b,1].
Introduced in 1988
(1.0)
| Updated in 2007
(6.0)