OsSetDynamicTextureData
De DigiWiki.
(Page créée avec « <lsl> // Example / Sample Script to show function use. // // Script Title: osSetDynamicTextureData.lsl // Script Author: // Threat Level: VeryLow // // Notes: This samp… ») |
|||
| Ligne 40 : | Ligne 40 : | ||
// draw a filled rectangle | // draw a filled rectangle | ||
sData = osSetPenSize(sData, 3); // Set the pen width to 3 pixels | sData = osSetPenSize(sData, 3); // Set the pen width to 3 pixels | ||
| - | sData = | + | sData = osSetPenColor(sData, "Red"); // Set the pen color to red |
sData = osMovePen(sData, 28, 78); // Upper left corner at <28,78> | sData = osMovePen(sData, 28, 78); // Upper left corner at <28,78> | ||
sData = osDrawFilledRectangle(sData, 200, 100); // 200 pixels by 100 pixels | sData = osDrawFilledRectangle(sData, 200, 100); // 200 pixels by 100 pixels | ||
| Ligne 47 : | Ligne 47 : | ||
sData = osSetFontName(sData, "Arial"); // Set the Fontname to use | sData = osSetFontName(sData, "Arial"); // Set the Fontname to use | ||
sData = osSetFontSize(sData, 10); // Set the Font Size in pixels | sData = osSetFontSize(sData, 10); // Set the Font Size in pixels | ||
| - | sData = | + | sData = osSetPenColor(sData, "Green"); // Set the pen color to Green |
sData = osDrawText(sData, "osSetDynamicTextureData\nSample\nfor: "+llDetectedName(0)); // The text to write | sData = osDrawText(sData, "osSetDynamicTextureData\nSample\nfor: "+llDetectedName(0)); // The text to write | ||
// Now draw it out | // Now draw it out | ||


