ClearColorA

From MCS Wiki AVR
(Difference between revisions)
Jump to: navigation, search
(Created page with "= <span class="f_Header">Action</span> = Specify the clear value for the alpha channel. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;">&n...")
 
 
Line 42: Line 42:
  
 
= <span class="f_Header">Example</span> =
 
= <span class="f_Header">Example</span> =
 +
 +
<source lang="bascomavr">
 +
' Pseudocode
 +
' Drawing three characters with transparency 255, 128, and 64
 +
Begin_G BITMAPS
 +
Vertex2II 50, 30, 31, &H47
 +
Color_A 128
 +
Vertex2II 58, 38, 31, &H47
 +
Color_A 64
 +
Vertex2II 66, 46, 31, &H47
 +
</source> [[File:Clip0102.png|center|Clip0102.png]]
 +
 +
<br/>{{Languages}}
 +
 +
[[Category:FT800 Commands]]

Latest revision as of 22:26, 12 December 2014

Contents

Action

Specify the clear value for the alpha channel.

 

 

Syntax

ClearColorA Alpha 

 

 

Remarks

Alpha

Alpha value used when the color buffer is cleared. The initial value is 0

 

Sets the alpha value applied to drawn elements - points, lines, and bitmaps. How the alpha value affects image pixels depends on BlendFunc, the default behavior is a transparent blend.

 

See also

ColorRGBBlendFunc

 

 

Example

' Pseudocode
' Drawing three characters with transparency 255, 128, and 64
Begin_G BITMAPS
Vertex2II 50, 30, 31, &H47
Color_A 128
Vertex2II 58, 38, 31, &H47
Color_A 64 
Vertex2II 66, 46, 31, &H47
Clip0102.png

Languages   English  
Personal tools
Namespaces
Variants
Actions
Navigation
Language