NCL Home > Documentation > Functions

Color routines

gsn_define_colormap Defines a color map for the given workstation.
gsn_draw_colormap Draws the current color map for the given workstation.
gsn_draw_named_colors Draws the given list of named colors.
gsn_merge_colormaps Merges two color maps and sets this as the color map for the given workstation.
gsn_retrieve_colormap Retrieves a color map for the given workstation.
gsn_reverse_colormap Reverses the color map for the given workstation.
hlsrgb Converts HLS color values to RGB.
hsv2rgb Maps values from the HSV color model to the RGB color model (deprecated).
hsvrgb Converts HSV color values to RGB.
NhlFreeColor Removes one or more color entries from one or more workstations.
NhlGetNamedColorIndex Returns color map indexes that match the given color names in the color maps of the given workstations.
NhlIsAllocatedColor Queries a list of workstations to determine whether or not the given color indexes have been allocated.
NhlNewColor Allocates new workstation color indexes.
NhlPalGetDefined Returns a list of available color maps.
NhlSetColor Sets the colors for a given list of color indexes and workstations.
rgbhls Converts RGB color values to HLS.
rgbhsv Converts RGB color values to HSV.
RGBtoCmap Reads a text file of RGB triplets and converts them to a colormap.
rgbyiq Converts RGB color values to YIQ values.
yiqrgb Converts YIQ color values to RGB.