ColorRGB
From MCS Wiki AVR
(Difference between revisions)
(Created page with "= <span class="f_Header">Action</span> = Set the current color red, green and blue. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> ...") |
|||
Line 58: | Line 58: | ||
= <span class="f_Header">Example</span> = | = <span class="f_Header">Example</span> = | ||
+ | |||
+ | <source lang="bascomavr"> | ||
+ | ' Pseudocode | ||
+ | |||
+ | ' Drawing three characters with different colors | ||
+ | Begin_G BITMAPS | ||
+ | Vertex2II 50, 38, 31, &H47 | ||
+ | ColorRGB 255, 100, 50 | ||
+ | Vertex2II 80, 38, 31, &H47 | ||
+ | ColorRGB 50, 100, 255 | ||
+ | Vertex2II 110, 38, 31,&H47 | ||
+ | </source>[[File:Clip0080.png|center|Clip0080.png]] | ||
+ | |||
+ | <br/>{{Languages}} | ||
+ | |||
+ | [[Category:FT800 Commands]] |
Latest revision as of 20:49, 12 December 2014
Contents |
Action
Set the current color red, green and blue.
Syntax
ColorRGB red, green ,blue
Remarks
red |
Red value for the current color. 0 to 255 , initial value is 255 |
green |
green value for the current color. 0 to 255 , initial value is 255 |
blue |
blue value for the current color. 0 to 255 , initial value is 255 |
Sets red, green and blue values of the FT800 color buffer which will be applied to the following draw operation.
See also
Example
' Pseudocode ' Drawing three characters with different colors Begin_G BITMAPS Vertex2II 50, 38, 31, &H47 ColorRGB 255, 100, 50 Vertex2II 80, 38, 31, &H47 ColorRGB 50, 100, 255 Vertex2II 110, 38, 31,&H47
Languages | English |
---|