Difference between revisions of "Category:LSL Alpha"

From Second Life Wiki
Jump to: navigation, search
m
(Trying to offer more detailed information.)
Line 1: Line 1:
 
{{Multi-lang}}{{LSL Header}}
 
{{Multi-lang}}{{LSL Header}}
  
Alpha indicates how much an object is opaque or translucent. In LSL alpha is set using a [[float]] value ranging from 0.0, indicating a clear object to the highest value 1.0, indicating an opaque object.  
+
The term "Alpha" refers to how opaque or transparent an object (or, in this case, a prim) is. In Second Life, the alpha property is set by the scripting command [[llSetAlpha]]. This command uses a [[float]] value. When set to '''0.0''', the object/prim is fully invisible. When set to '''1.0''', the object is fully opaque.
  
When setting the alpha channel through the SL GUI alpha is represented as a percentage value ranging from 0 to 100, and there is a cap at 90%.
+
In Build Mode, the alpha is represented by a percentage, ranging from 0% to 100%. 0% is like typing in ''llSetAlpha(1.0)'' in a script, and 100% is like typing ''llSetAlpha(0.0)''. There is a cap of 90%, but by using the [[llSetAlpha]] command, you can get around this.
  
 
{{LSLC|}}{{LSLC|Face}}
 
{{LSLC|}}{{LSLC|Face}}

Revision as of 10:57, 20 February 2008

The term "Alpha" refers to how opaque or transparent an object (or, in this case, a prim) is. In Second Life, the alpha property is set by the scripting command llSetAlpha. This command uses a float value. When set to 0.0, the object/prim is fully invisible. When set to 1.0, the object is fully opaque.

In Build Mode, the alpha is represented by a percentage, ranging from 0% to 100%. 0% is like typing in llSetAlpha(1.0) in a script, and 100% is like typing llSetAlpha(0.0). There is a cap of 90%, but by using the llSetAlpha command, you can get around this.