PageRenderTime 36ms CodeModel.GetById 34ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/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
 1default
 2{
 3    state_entry()
 4    {
 5        llSetText("This is our floating text!", <0.0, 1.0, 1.0>, 0.5);
 6    } 
 7    touch_start(integer number)
 8    { 
 9        // aaGetTextColor allows you to retrieve the color of the text on the object
10        rotation color = aaGetTextColor();
11        float r = color.x;
12        float g = color.y;
13        float b = color.z;
14        float a = color.s;
15        llSay(0,r + "," + g + "," + b + "," + a); 
16    }
17}