look up color name by 24-bit color value - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : ColorTools/RGB24ToName

ColorTools[RGB24ToName] - look up color name by 24-bit color value

Calling Sequence

RGB24ToName(rgb)

Parameters

rgb

-

list; [r,g,b] color values, integer values 0-255

Description

• 

The RGB24ToName procedure converts from RGB color values to a color name.

• 

The new option acts as follows:

new=true: only search new color names

new=false: only search old color names

default (option new not specified): search both new and old color names

• 

If a default value is provided, then that is returned when no match is found, otherwise an error occurs.

Examples

withColorTools:

RGB24ToName0,255,0

Lime

(1)

RGB24ToName0,255,0,new=false

green

(2)

RGB24ToName255,0,0

Red

(3)

RGB24ToNameI like cat videos

Error, invalid input: ColorTools:-RGB24ToName expects its 1st argument, rl, to be of type list(integer), but received I like cat videos

See Also

ColorTools


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam