Difference between revisions of "Color-to-Vector Tool"
Jump to navigation
Jump to search
m (forgot the LSL Header - it's been a while) |
m (lsl code tagging) |
||
Line 4: | Line 4: | ||
This script is useful as a WYSIWYG color reporter. Each time the prim's color changes, the color vector is chatted to the owner. Note, it reports the color of face 0(zero) by default. | This script is useful as a WYSIWYG color reporter. Each time the prim's color changes, the color vector is chatted to the owner. Note, it reports the color of face 0(zero) by default. | ||
< | <lsl> | ||
integer FACE = 0; | integer FACE = 0; | ||
Line 12: | Line 12: | ||
} | } | ||
} | } | ||
</ | </lsl> | ||
[[Category:LSL Examples]] | [[Category:LSL Examples]] |
Revision as of 16:27, 30 March 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Say the Prim's Color Vector
This script is useful as a WYSIWYG color reporter. Each time the prim's color changes, the color vector is chatted to the owner. Note, it reports the color of face 0(zero) by default.
<lsl> integer FACE = 0;
default {
changed(integer change) { if (change & CHANGED_COLOR) llOwnerSay("Color Vector = " + (string)llGetColor(FACE)); }
} </lsl>