- This wiki is out of date, use the continuation of this wiki instead
Rgb
From FenixWiki
(Difference between revisions)
Revision as of 10:11, 22 April 2007 (edit) Woody (Talk | contribs) ← Previous diff |
Revision as of 15:19, 22 April 2007 (edit) (undo) Woody (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
[[Category:functions]] | [[Category:functions]] | ||
+ | [[Category:palettes]] | ||
==Definition== | ==Definition== |
Revision as of 15:19, 22 April 2007
Contents |
Definition
INT rgb ( <INT red> , <INT green> , <INT blue> )
Finds the single color in the current color mode closest to the combined red, green, and blue values specified.
Parameters
INT red | - Level of red in the desired color from 0 to 255. |
INT green | - Level of green in the desired color from 0 to 255. |
INT blue | - Level of blue in the desired color from 0 to 255. |
Returns
INT : Returns the best matched color.
Example
Program awesome; Global red=0; green=255; blue=0; Begin set_text_color(rgb(red,green,blue)); // rgb finds the color closest to pure green and passes it to set_text_color write(0,1,1,0,"Mijn potlood is bruin"); //this text will be green as an Irishman's ejecta Loop frame; End End