OsDrawRotationTransform
From OpenSimulator
(Difference between revisions)
m (Added note stating which version of OpenSim introduced this function) |
(Add exemple) |
||
(2 intermediate revisions by one user not shown) | |||
Line 3: | Line 3: | ||
|permissions=true | |permissions=true | ||
|delay=0 | |delay=0 | ||
− | |function_syntax=string osDrawRotationTransform(string drawList, | + | |function_syntax=string osDrawRotationTransform(string drawList, float x) |
− | + | ||
|ossl_example=<source lang="lsl"> | |ossl_example=<source lang="lsl"> | ||
− | // | + | // |
+ | // osDrawRotationTransform Script Exemple | ||
+ | // Author: djphil | ||
+ | // | ||
default | default | ||
Line 12: | Line 14: | ||
state_entry() | state_entry() | ||
{ | { | ||
− | .. | + | llSay(PUBLIC_CHANNEL, "Touch to see osDrawRotationTransform usage."); |
+ | } | ||
+ | |||
+ | touch_start(integer number) | ||
+ | { | ||
+ | string CommandList = ""; | ||
+ | CommandList = osSetFontName(CommandList, "Courier New"); | ||
+ | CommandList = osSetFontSize(CommandList, 20); | ||
+ | CommandList = osSetPenSize( CommandList, 10); | ||
+ | |||
+ | integer i; | ||
+ | |||
+ | for(i = 0; i < 25; ++i) | ||
+ | { | ||
+ | CommandList = osDrawLine(CommandList, 20, 10, 250, 10); | ||
+ | CommandList = osDrawLine(CommandList, 455, 10, 725, 10); | ||
+ | CommandList = osMovePen(CommandList, 250, 0); | ||
+ | CommandList = osDrawText(CommandList, "Hello World!"); | ||
+ | CommandList = osDrawRotationTransform(CommandList, 4.0); | ||
+ | } | ||
+ | |||
+ | CommandList = osDrawResetTransform(CommandList); | ||
+ | osSetDynamicTextureData("", "vector", CommandList, "width:512,height:512", 0); | ||
} | } | ||
} | } | ||
</source> | </source> | ||
|description=... | |description=... | ||
− | |additional_info=This function was added in 0.9.0 | + | |additional_info=This function was added in 0.9.0.1}} |
− | }} | + |
Latest revision as of 07:22, 28 November 2020
string osDrawRotationTransform(string drawList, float x)
| |
... | |
Threat Level | This function does not do a threat level check |
Permissions | Use of this function is always allowed by default |
Extra Delay | 0 seconds |
Example(s) | |
// // osDrawRotationTransform Script Exemple // Author: djphil // default { state_entry() { llSay(PUBLIC_CHANNEL, "Touch to see osDrawRotationTransform usage."); } touch_start(integer number) { string CommandList = ""; CommandList = osSetFontName(CommandList, "Courier New"); CommandList = osSetFontSize(CommandList, 20); CommandList = osSetPenSize( CommandList, 10); integer i; for(i = 0; i < 25; ++i) { CommandList = osDrawLine(CommandList, 20, 10, 250, 10); CommandList = osDrawLine(CommandList, 455, 10, 725, 10); CommandList = osMovePen(CommandList, 250, 0); CommandList = osDrawText(CommandList, "Hello World!"); CommandList = osDrawRotationTransform(CommandList, 4.0); } CommandList = osDrawResetTransform(CommandList); osSetDynamicTextureData("", "vector", CommandList, "width:512,height:512", 0); } } | |
Notes | |
This function was added in 0.9.0.1 |