function
- 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.
vector result = llGetColor(0);Examples
Section titled “Examples”Example 1
// Tells the owner the color on all sidesdefault{ state_entry() { integer i = 0; integer max = llGetNumberOfSides(); while(i < max) { llOwnerSay("Face " + (string) i + " color is " + (string) llGetColor(i)); ++i; } }}See also
Section titled “See also”Functions
Section titled “Functions”llGetAlpha— Gets the prim’s alphallSetAlpha— Sets the prim’s alphallSetColor— Sets the prim’s colorllSetLinkColor— Sets link’s colorllSetLinkAlpha— Sets link’s alphallGetNumberOfSides— Gets the number of faces on the prim
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.