Returns the Grey component of an (R,G,B) color.
Syntax
CLRGREY(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
| CLRGREY returns: | a value |
| Domain: | system domain Image |
Notes:
Tips:
Usable in
MapCalc, TabCalc, Simple calculators
Examples
Pocket line calculator example:
? CLRGREY(RPRCOLOR(Landuse,"Airport") |
returns the grey component of class "Airport" from representation Landuse, e.g. 77 |
TabCalc example:
Grey = CLRGREY(Color)
|
Landunit |
Colorname |
Color |
Grey |
|
Agriculture |
Yellow |
(255, 255, 0) |
227 |
|
Airport |
Red |
(255, 0, 0) |
77 |
|
Bare soils |
Brown |
(164, 40, 40) |
77 |
|
Forest |
Forest Green |
(48, 128, 76) |
98 |
|
Grass |
Yellow Green |
(98, 98, 98) |
98 |
|
Lake |
Blue |
(0, 0, 255) |
28 |
|
Riverbed |
Cyan |
(0, 255, 255) |
179 |
|
Rocks |
Gray |
(128, 128, 128) |
128 |
|
Shrubs |
Magenta |
(255, 0, 255) |
105 |
MapCalc example:
LandColor = MAPCOLOR(Landuse)
Grey = CLRGREY(LandColor)
Landuse |
LandColor |
Grey |
|||||||||||||||||||||||||||
|
|
|
See also:
| COLOR | CLRGREEN | CLRYELLOW | CLRHUE |
| MAPCOLOR | CLRBLUE | CLRMAGENTA | CLRSAT |
| RPRCOLOR | CLRCYAN | CLRINTENS | |
| CLRGREY | COLORHSI |