| Color and texture control in LSL |
Colorators. Script modding colors |
| You specify colors in LSL in a Vector of three colors. | Vector: < R, G, B> . R, G, B are floating point numbers between 0 and 1. Black is <0.0, 0.0, 0.0>; White is <1.0, 1.0, 1.0> |
| Point of confusion. Another form of color specification uses integers ranging from 0 to 255. This form is used in onscreen color selection in Second Life. | If you have to move between the ranges, use a spreadsheet or get familiar with the computation services in the Google search bar. You multiply or divide by 255. |
| Failure mode: Use integer rather than float. | |
| A texture is an image. To be used by LSL, the image must be in the contents of the prim. You assign textures by name to a side or to ALL_SIDES. | Primager |
|
The Thinkerer
09/13/2008 Copyright (c) D. F. Dansereau & S. H. Evans |
LODScr | ||
| Famous fables | |||