SetMarkerColor: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool setMarkerColor ( marker marker, int r, int g, int b )</syntaxhighlight> | |||
===Required Arguments=== | ===Required Arguments=== | ||
Line 13: | Line 13: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua">newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0 ) --Create red marker | |||
setMarkerColor ( newmarker, 0, 255, 0 ) --Turn red marker into a green one</syntaxhighlight> | |||
Revision as of 03:38, 20 May 2006
Description
This function sets the color of the specified marker by modifying the values for red, green and blue.
Syntax
bool setMarkerColor ( marker marker, int r, int g, int b )
Required Arguments
- marker: The marker that you wish to set the color of.
- r: The amount of red in the final color (0 to 255).
- g: The amount of green in the final color (0 to 255).
- b: The amount of blue in the final color (0 to 255).
Example
newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0 ) --Create red marker setMarkerColor ( newmarker, 0, 255, 0 ) --Turn red marker into a green one