This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


Updated In 6 Graphic
RGBColor[red, green, blue]
is a graphics directive which specifies that objects which follow are to be displayed, if possible, in the color given.
RGBColor[r, g, b, a]
specifies opacity a.
  • 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.
  • 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.  »
  • In RGBColor[r, g, b, a], a is an "alpha channel" used to specify opacity.
  • If no opacity has been specified, RGBColor[r, g, b] is equivalent to RGBColor[r, g, b, 1].
  • Style[expr, RGBColor[...]] specifies that expr should be displayed with the specified color.  »
New in 1 | Last modified in 6