Difference between revisions of "LlSetColor"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
{{LSLFunctionAll|func_id=49|func_sleep=0.0|func_energy=10.0|func=llSetColor|p1_type=vector|p1_name=color|p2_type=integer|p2_name=face|func_footnote=sets the color|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSL_Function/face|face|}}
{{LSL_Function
|func_id=49|func_sleep=0.0|func_energy=10.0
|func=llSetColor
|p1_type=vector|p1_name=color|p2_type=integer|p2_name=face
|func_footnote
|func_desc=Sets the color
|return_text
|spec
|caveats
|constants
|examples
|helpers
|also_functions
|also_tests
|also_events
|also_articles
|notes
|deprecated
|cat1
|cat2
|cat3
|cat4
}}

Revision as of 20:08, 20 February 2007

Summary

Function: llSetColor( vector color, integer face );
0.0 Forced Delay
10.0 Energy

Sets the color

• vector color
• integer face face number or ALL_SIDES

If face is ALL_SIDES then the function works on all sides.

Newbie Notes

llSetColor changes the color of a prim, either on a specific side (face) or the entire prim.

Example:
llSetColor(<r, g, b>, ALL_SIDES);

r, g, b: values for red, green, blue ranging from <0.0, 0.0, 0.0> (black) to <1.0, 1.0, 1.0> (white)

To continue reading see: Newbie Notes

Caveats

  • The function silently fails if its face value indicates a face that does not exist.

Examples

Deep Notes

Signature

function void llSetColor( vector color, integer face );