manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.3.8 Pallete (Pure C)

C function: void mgl_set_palette (HMGL gr, const char *colors)

Sets the palette as selected colors. Default value is "Hbgrcmyhlnqeup". The palette is used mostly in 1D plots (see section 1D plotting (Pure C)) for curves which styles are not specified.

C function: void mgl_set_pal_color (HMGL gr, int n, float r, float g, float b)

Sets color for individual palette entry. Look at mgl_set_palette() function for simplified palette setting.

C function: void mgl_set_pal_num (HMGL gr, int num)

Sets the number of actual colors in palette. The value must be less then 100.

C function: void mgl_set_scheme (HMGL gr, const char *sch)

Sets the color scheme for following plots. Usually this function is used internally. See section Color scheme.


© manpagez.com 2000-2026
Individual documents may contain additional copyright information.