Map and Table Calculation

CLRBLUE( ) function

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

Syntax

CLRBLUE(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

CLRBLUE returns: a value
Domain: system domain Image

Note:

The CLRBLUE(Color) function is equivalent to MAPCOLORSEP(InMap, Blue) operation.

Tips:

Usable in

MapCalc, TabCalc, Simple calculators

Examples

Pocket line calculator example:

? CLRBLUE(RPRCOLOR(Landuse,"Lake"))

returns the blue component of class "Lake" from representation Landuse, e.g. 255.

TabCalc example:

Blue = CLRBLUE(Color)

 

Landuse.rpr

Landunit

Colorname

Color

Blue

Agriculture

Yellow

(255, 255, 0)

0

Airport

Red

(255, 0, 0)

0

Bare soils

Brown

(164, 40, 40)

40

Forest

Forest Green

(48, 128, 76)

76

Grass

Yellow Green

(98, 98, 98)

98

Lake

Blue

(0, 0, 255)

255

Riverbed

Cyan

(0, 255, 255)

255

Rocks

Gray

(128, 128, 128)

128

Shrubs

Magenta

(255, 0, 255)

255

MapCalc example:

LandColor = MAPCOLOR(Landuse)

Blue = CLRBLUE(LandColor)

 

Landuse

LandColor

Blue

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)
76 76 128
255 255 98
0 98 0

See also:

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