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

From AgentCubes
Jump to navigation Jump to search
imported>Mike
imported>Repenning
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[image:Transport action.png|150px]]
+
[[Image:Set Rgba color.png|250px|Set Rgba color.png]]  
  
<table cellpadding="10" cellspacing="0" border="0" width="100%">
+
{| cellpadding="10" cellspacing="0" border="0" width="100%"
<tr>
+
|-
<td align="left" valign="top" width="80"><b>Definition:</b></td>
+
| align="left" valign="top" width="80" | '''Definition:'''
<td align="left" valign="top" width="100%">The <strong>Set-Rgba-Color</strong> action .................</td>
+
| align="left" valign="top" width="100%" | The '''Set-Rgba-Color''' action: ''directly sets the RGBA values of an agent.''
</tr>
+
|-
<tr>
+
| align="left" valign="top" width="80" | '''Parameters:'''
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
+
| align="left" valign="top" width="100%" |
<td align="left" valign="top" width="100%">...........</td>
+
[[VAT Formula parameter|Red]]: ''number or VAT Formula for Red: 0.0..1.0''
</tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Example:</b></td>
 
<td align="left" valign="top" width="100%"></td>
 
</tr>
 
  
</table>
+
[[VAT Formula parameter|Green]]: ''number or VAT Formula for Green: 0.0..1.0''
  
 +
[[VAT Formula parameter|Blue]]: ''number or VAT Formula for Blue: 0.0..1.0''
 +
 +
[[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="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.