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