Difference between revisions of "Set-Rgba-Color Action"

From AgentCubes
Jump to navigation Jump to search
imported>Corrina
imported>Repenning
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
{| cellpadding="10" cellspacing="0" border="0" width="100%"
 
{| cellpadding="10" cellspacing="0" border="0" width="100%"
 
|-
 
|-
| align="left" valign="top" width="80" | '''Definition:'''
+
| align="left" valign="top" width="80" | '''Definition:'''  
 
| align="left" valign="top" width="100%" | The '''Set-Rgba-Color''' action: ''directly sets the RGBA values of an agent.''
 
| align="left" valign="top" width="100%" | The '''Set-Rgba-Color''' action: ''directly sets the RGBA values of an agent.''
 
|-
 
|-
| align="left" valign="top" width="80" | '''Parameters:'''
+
| align="left" valign="top" width="80" | '''Parameters:'''  
 
| align="left" valign="top" width="100%" |  
 
| align="left" valign="top" width="100%" |  
Red: ''number or VAT Formula for Red''
+
[[VAT Formula parameter|Red]]: ''number or VAT Formula for Red: 0.0..1.0''  
  
Green: ''number or VAT Formula for Green''
+
[[VAT Formula parameter|Green]]: ''number or VAT Formula for Green: 0.0..1.0''  
  
Blue: ''number or VAT Formula for Blue''
+
[[VAT Formula parameter|Blue]]: ''number or VAT Formula for Blue: 0.0..1.0''  
  
Alpha: ''number or VAT Formula for transparency''
+
[[VAT Formula parameter|Alpha]]: ''number or VAT Formula for transparency: 0.0..1.0 where 0.0 = invisible; 1.0 = opaque''  
  
 
|-
 
|-
| align="left" valign="top" width="80" | '''Example:'''
+
| align="left" valign="top" width="80" | '''Example:'''  
 
| align="left" valign="top" width="100%" |  
 
| align="left" valign="top" width="100%" |  
 
|}
 
|}
 +
 +
The values for each color component (RGBA: Red, Green, Blue, Alpha) are between 0.0 and 1.0.
  
 
[[Category:AgentCubes_Actions]]
 
[[Category:AgentCubes_Actions]]

Latest revision as of 21:54, 29 June 2016

Set Rgba color.png

Definition: The Set-Rgba-Color action: directly sets the RGBA values of an agent.
Parameters:

Red: number or VAT Formula for Red: 0.0..1.0

Green: number or VAT Formula for Green: 0.0..1.0

Blue: number or VAT Formula for Blue: 0.0..1.0

Alpha: number or VAT Formula for transparency: 0.0..1.0 where 0.0 = invisible; 1.0 = opaque

Example:

The values for each color component (RGBA: Red, Green, Blue, Alpha) are between 0.0 and 1.0.