GET GEO ATTR COLOR: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
No edit summary
Mikeo (talk | contribs)
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Geometry:Editing_Geometry|{{Up}}]]
[[Geometry:Editing_Geometry|{{Up}}]]


{{Command|syntax=GET_ATTR_COLOR <geo ref>, <red>, <green>, <blue>
{{Command|syntax=GET_GEO_ATTR_COLOR <geo ref>, <color_attr>, <red>, <green>, <blue>
|description=Get the user color attribute associated with a geometry feature.
|description=:Get the user color attribute associated with a geometry feature.


|param1=<geo ref>|param1_desc={{geo ref}}
|param1=<geo ref>|param1_desc={{geo ref}}
|param2=<red>|param2_desc={{get red}}
|param2=<color_attr>|param2_desc=1=The geometry does has a color attribute<br>0=It does not have a color attribute
|param3=<green>|param3_desc={{get green}}
|param3=<red>|param3_desc={{get red}}
|param4=<blue>|param4_desc={{get blue}}
|param4=<green>|param4_desc={{get green}}
|param5=<blue>|param5_desc={{get blue}}
}}
}}


===Example===
===Example===
:GET_GET_ATTR_COLOR 21, RedVal, BlueVal, GreenVal
:GET_GEO_ATTR_COLOR 21, HasColor, RedVal, BlueVal, GreenVal


[[Category:Geometry]]
[[Category:Geometry]]

Latest revision as of 20:47, 14 June 2013

Up

Command

GET_GEO_ATTR_COLOR <geo ref>, <color_attr>, <red>, <green>, <blue>


Get the user color attribute associated with a geometry feature.

Parameters

<geo ref>
The reference number of the geometry feature.
<color_attr>
1=The geometry does has a color attribute
0=It does not have a color attribute
<red>
The name of a numeric variable to set to the red component of a color.
This will be a number between 0 and 255
<green>
The name of a numeric variable to set to the green component of a color.
This will be a number between 0 and 255
<blue>
The name of a numeric variable to set to the blue component of a color.
This will be a number between 0 and 255

Example

GET_GEO_ATTR_COLOR 21, HasColor, RedVal, BlueVal, GreenVal