| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4.2.7 Palette and colors
- MGL command: palette 'colors'
- Method on
mglGraph:voidSetPalette (const char *colors) - C function:
voidmgl_set_palette (HMGLgr,const char *colors) Sets the palette as selected colors. Default value is
"Hbgrcmyhlnqeup"that corresponds to colors: dark gray ‘H’, blue ‘b’, green ‘g’, red ‘r’, cyan ‘c’, magenta ‘m’, yellow ‘y’, gray ‘h’, blue-green ‘l’, sky-blue ‘n’, orange ‘q’, yellow-green ‘e’, blue-violet ‘u’, purple ‘p’. The palette is used mostly in 1D plots (see 1D plotting) for curves which styles are not specified. Internal color counter will be nullified by any change of palette. This includes even hidden change (for example, byBox()orAxis()functions).
- Method on
mglGraph:voidSetDefScheme (const char *sch) - C function:
voidmgl_set_def_sch (HMGLgr,const char *sch) Sets the sch as default color scheme. Default value is
"BbcyrR".
- C function:
voidmgl_set_color (charid,floatr,floatg,floatb) Sets RGB values for color with given id.
This document was generated on April 13, 2012 using texi2html 5.0.
