This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Graphics and Sound / Graphics Primitives  /

  • RGBColor[ red , green , blue ] is a graphics directive which specifies that graphical objects which follow are to be displayed, if possible, in the color given.
  • Red, green and blue color intensities outside the range 0 to 1 will be clipped.
  • On monochrome displays, a gray level based on the average of the color intensities is used.
  • The end of the Graphics Gallery shows examples of colors generated with various RGBColor specifications.
  • See the Mathematica book: Section 2.9.3.
  • See also: Hue, GrayLevel, CMYKColor, ColorOutput.
  • Related package: Graphics`Colors`.

    Further Examples

    The second plot distinguishes the curves with colors.

    Evaluate the cells to compare the graphics.