Color A

From MCS Wiki AVR
Jump to: navigation, search

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