llSetColor(vector color, integer face)
Sets the color of a face or all faces in the current prim.
A LSL color vector (3 comma-separated RGB values in the range 0.0 to 1.0, between angle brackets)
llSetColor(<0.5, 0.5, 0.5>, 3); // will set face 3 of the prim to grey
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); } }
llSetLinkColor
to set the color on any chosen prim in the current object.llSetAlpha
to change the opacity of a face in the current prim, or llSetLinkAlpha
to change it for any chosen prim.llSetTexture
and llSetLinkTexture
to change the texture of this prim and of any prim in the linkset, respectively.