Color A

From MCS Wiki AVR
(Difference between revisions)
Jump to: navigation, search
(Created page with "<span class="f_Header">Action</span> Set the current color alpha. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> </span> = <span c...")
 
 
Line 46: Line 46:
  
 
= <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:Clip0078.png|center|Clip0078.png]]
 +
 +
<br/>{{Languages}}
 +
 +
[[Category:FT800 Commands]]

Latest revision as of 20:43, 12 December 2014

Action

Set the current color alpha.

 

 

Contents

Syntax

Color_A alpha 

 

 

Remarks

alpha

Alpha for the current color. 0 to 255, the initial value is 255

 

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

Languages   English  
Personal tools
Namespaces
Variants
Actions
Navigation
Language