Skip to content
lsl.devlsl.devLSL Dev

llGetColor

function
Function syntax
vector llGetColor(
  1. integer face// Face number or ALL_SIDES. Values: Faces
);
Returns
vector
Energy
10

Returns the Blinn-Phong RGB color vector of face (values between 0.0 and 1.0). If face is ALL_SIDES, returns the mean average of all faces.

Returns a vector that is the Blinn-Phong color on face.

How to use
vector result = llGetColor(0);
Example 1
// Tells the owner the color on all sides
default
{
state_entry()
{
integer i = 0;
integer max = llGetNumberOfSides();
while(i < max)
{
llOwnerSay("Face " + (string) i + " color is " + (string) llGetColor(i));
++i;
}
}
}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.