$nav
===== Function: llSetColor =====
llSetColor(vector color, integer face)
Sets the $lart[color] of a face or all faces in the current prim.
===== Parameters =====
=== color ===
$colorparam
=== face ===
$faceparam
===== Short examples =====
llSetColor(<0.5, 0.5, 0.5>, 3); // will set face 3 of the prim to grey
===== Complete examples =====
default
{
state_entry()
{
// This example takes a color vector in RGB values (3 values in the range 0 to 255)
// and applies it to all sides of the current prim
llSetColor( <128, 240, 96> / 255, ALL_SIDES);
}
}
===== See also =====
* $lfn[llSetLinkColor] to set the color on any chosen prim in the current object.
* $lfn[llSetAlpha] to change the opacity of a face in the current prim, or $lfn[llSetLinkAlpha] to change it for any chosen prim.
* The $lfn[PrimitiveParams/|PrimitiveParms] family of functions, with $lct[PRIM_COLOR], allows changing color and alpha at the same time.
* $lfn[llSetTexture] and $lfn[llSetLinkTexture] to change the texture of this prim and of any prim in the linkset, respectively.