|LSL Portal||Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials|
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 functions llSetAlpha, llSetLinkAlpha, llSetPrimitiveParams, and llSetLinkPrimitiveParams. These functions use a float value. When set to 0.0, the object/prim is fully invisible. When set to 1.0, the object is non-transparent. Sometimes, Residents refer to a transparent texture as alpha texture. This is not to be confused with this prim property. See llSetTexture and TEXTURE_TRANSPARENT instead.
In Build Mode, the alpha is represented by a percentage, ranging from 0% to 90%. (Note: The 90% cap is for viewers that have been officially released by Linden Labs)
Below are examples on how one may set the alpha of an object.
|llSetAlpha||<lsl>llSetAlpha(1.0, ALL_SIDES);</lsl>||This will set the object's sides' alpha to non-transparent ; 0% using the build tool.|
|llSetLinkAlpha||<lsl>llSetLinkAlpha(LINK_SET, 0.0, ALL_SIDES);</lsl>||This will set link-set's alpha to fully transparent, or 100% using the build tool. (Note: The Viewers released by Linden Labs are unable to set the alpha of an object to fully transparent without a script; the limit is caped at 90%)|
|llSetPrimitiveParams||<lsl>llSetPrimitiveParams([PRIM_COLOR, ALL_SIDES, llGetColor(ALL_SIDES), 0.5]);</lsl>||This will set the object's alpha to opaque; 50% using the build tool.|
|llSetLinkPrimitiveParams||<lsl>llSetLinkPrimitiveParams(LINK_SET, [PRIM_COLOR, ALL_SIDES, llGetColor(ALL_SIDES), 0.5]);</lsl>||This will set the link-set's alpha to opaque; 50% using the build tool.|
This category has only the following subcategory.
Pages in category "LSL Alpha"
The following 22 pages are in this category, out of 22 total.