POV-Ray : Newsgroups : povray.binaries.images : Mug Madness continues...accidentally : Re: Mug Madness continues...accidentally Server Time
13 Aug 2024 13:17:08 EDT (-0400)
  Re: Mug Madness continues...accidentally  
From: Rene Schwietzke
Date: 13 Mar 2003 10:53:32
Message: <3e70a97c@news.povray.org>
Just a small piece of POV-Ray documentation:

RGB
POV-Ray often requires you to specify a color. Colors consist of five values
or color components. The first three are called red, green, and blue. They
specify the intensity of the primary colors red, green and blue using an
additive color system like the one used by the red, green and blue color
phosphors on a color monitor.

In POV-Ray all colors are handled in RGB color space with a component for
the amount of red, green and blue light. However, not everybody thinks this
is the most intuitive way to specify colors. For your convenience there are
macros included in colors.inc that converts between a few different types of
color spaces.
The three supported color spaces:
  a.. RGB = < Red, Green, Blue, Filter, Transmit >
  b.. HSL = < Hue, Saturation, Lightness, Filter, Transmit >
  c.. HSV = < Hue, Saturation, Value, Filter, Transmit >
CHSL2RGB(Color). Converts a color given in HSL space to one in RGB space.
Parameters:

  a.. Color = HSL color to be converted.
CRGB2HSL(Color). Converts a color given in RGB space to one in HSL space.
Parameters:

  a.. Color = RGB color to be converted.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.