/AuroraDocs/AAFunctions/aaGetTextColor.lsl
https://bitbucket.org/VirtualReality/software-testing · Unknown · 17 lines · 17 code · 0 blank · 0 comment · 0 complexity · 34695e7468ccc936b3eea5a78b522b2c MD5 · raw file
- default
- {
- state_entry()
- {
- llSetText("This is our floating text!", <0.0, 1.0, 1.0>, 0.5);
- }
- touch_start(integer number)
- {
- // aaGetTextColor allows you to retrieve the color of the text on the object
- rotation color = aaGetTextColor();
- float r = color.x;
- float g = color.y;
- float b = color.z;
- float a = color.s;
- llSay(0,r + "," + g + "," + b + "," + a);
- }
- }