Map and Table Calculation

CLRYELLOW( ) function

Returns the Yellow component of an (R,G,B) color.

Syntax

CLRYELLOW(Color)

Input

Color is a map or a column with the Color domain or a picture domain, or an expression which results in a color
Domain type: system domain Color or a Picture domain

Output

CLRYELLOW returns: a value
Domain: system domain Image

Notes:

Tips:

Usable in

MapCalc, TabCalc, Simple calculators

Examples

Pocket line calculator example:

? CLRYELLOW(RPRCOLOR(Landuse,"Agriculture"))

returns the yellow component of class "Agriculture" from representation Landuse, e.g. 255.

TabCalc example:

Yellow = CLRYELLOW(Color)

 

Landuse.rpr

Landunit

Colorname

Color

Yellow

Agriculture

Yellow

(255, 255, 0)

255

Airport

Red

(255, 0, 0)

255

Bare soils

Brown

(164, 40, 40)

215

Forest

Forest Green

(48, 128, 76)

179

Grass

Yellow Green

(98, 98, 98)

157

Lake

Blue

(0, 0, 255)

0

Riverbed

Cyan

(0, 255, 255)

0

Rocks

Gray

(128, 128, 128)

127

Shrubs

Magenta

(255, 0, 255)

0

MapCalc example:

LandColor = MAPCOLOR(Landuse)

Yellow = CLRYELLOW(LandColor)

 

Landuse

LandColor

Yellow

Forest Forest Rocks
Shrubs Lake Grass
? Grass Airport
(48,128,76) (48,128,76) (128,128,128)
(255,0,255) (0,0,255) (98,98,98)
(0,0,0) (98,98,98) (255,0,0)
179 179 127
0 0 157
255 157 255

See also:

COLOR CLRRED CLRMAGENTA CLRHUE
MAPCOLOR CLRGREEN CLRCYAN CLRSAT
RPRCOLOR CLRBLUE CLRGREY CLRINTENS
    COLORHSI