AssignColors:

Path: Common/Graphics

--------------------------------------------------------------------------
   Choose n colors from around the RGB color wheel. 

   See also hsv2rgb.

   Saturation: reducing the saturation lightens the colors while remaining
   on the same "spoke" of the color wheel. A saturation of 0 produces all grays.

   Value: ratio between RGB components remains the same, but overall
   magnitude drops to make colors darker. ex. [1 0.85 0] and [0.684 0.581 0]

   Since version 8.
--------------------------------------------------------------------------
   Form:
   colors = AssignColors( n, sat, val )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   n       (1,1)     Number of colors
   sat     (1,1)     Saturation (from 0 to 1)
   val     (1,1)     Value (from 0 to 1)

   -------
   Outputs
   -------
   colors  (n,3)     Matrix of RGB colors

--------------------------------------------------------------------------

Back to the Common Module page