ColorRGB

From MCS Wiki AVR
(Difference between revisions)
Jump to: navigation, search
(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

Color_A , ColorRGBdw

 

 

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
Clip0080.png

Languages   English  
Personal tools
Namespaces
Variants
Actions
Navigation
Language