Documentation

RGB::ColorNames

Find predefined colors by name

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

RGB::ColorNames()
RGB::ColorNames(str)

Description

RGB::ColorNames(str) goes through the list of predefined color names in the RGB name space and returns those whose names contain the string or identifier str given as input.

RGB::ColorNames() returns all color names available in the RGB name space.

Examples

Example 1

The following call returns all predefined color names containing "Olive":

RGB::ColorNames("Olive")

The RGB values of these colors are:

RGB::Olive, RGB::OliveDrab, RGB::OliveGreen, 
RGB::OliveGreenDark

Parameters

str

A part of a color name: a string or an identifier

Return Values

RGB::ColorNames returns a list of predefined color names.

See Also

MuPAD Functions

Was this topic helpful?