You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.
This shows you the differences between two versions of the page.
functions:llsetlinkalpha [2014-01-06 03:09 SLT] sei llSetPrimitiveParams -> PrimitiveParams; avoid scroll bar |
functions:llsetlinkalpha [2015-02-04 17:56 SLT] (current) sei See Also: +llSet[Link]Texture |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | $nav | ||
===== Function: llSetLinkAlpha ===== | ===== Function: llSetLinkAlpha ===== | ||
Line 11: | Line 12: | ||
=== alpha === | === alpha === | ||
- | A float value between 0.0 and 1.0 being the degree of opacity. 1.0 being fully opaque. | + | A $lty[float] value between 0.0 and 1.0 indicating the degree of opacity, with 1.0 being fully opaque. |
=== face === | === face === | ||
Line 19: | Line 20: | ||
* Note that the viewer shows transparency, not opacity, and it shows it in percentage. To convert from viewer transparency to an alpha value suitable for use with this function, use this formula: alpha=(100-transparency)/100. For example, a transparency of 35% is an alpha value of 0.65. | * Note that the viewer shows transparency, not opacity, and it shows it in percentage. To convert from viewer transparency to an alpha value suitable for use with this function, use this formula: alpha=(100-transparency)/100. For example, a transparency of 35% is an alpha value of 0.65. | ||
- | * The function silently fails if 'face' indicates a face that does not exist, or if 'link' indicates a non-existent prim. | + | * The function silently fails if **face** indicates a face that does not exist, or if **link** indicates a non-existent prim. |
===== Short examples ===== | ===== Short examples ===== | ||
Line 50: | Line 51: | ||
===== See also ===== | ===== See also ===== | ||
- | * [[llSetAlpha]] to affect only the current prim. | + | * $lfn[llSetAlpha] to affect only the current prim. |
- | * [[llSetColor]] to set the color of a face in the current prim, or [[llSetLinkColor]] to set it for any chosen prim. | + | * $lfn[llSetColor] to set the color of a face in the current prim, or $lfn[llSetLinkColor] to set it for any chosen prim. |
- | * The [[PrimitiveParams]] family of functions, with [[constants/PRIM_COLOR]], allows changing color and alpha at the same time. | + | * The $lfn[PrimitiveParams/|PrimitiveParams] family of functions, with $lct[PRIM_COLOR], allows changing color and alpha at the same time. |
+ | * $lfn[llSetTexture] and $lfn[llSetLinkTexture] can also be used to change the texture to $lct[TEXTURE_TRANSPARENT]. | ||