gradientValue
Revision as of 16:01, 8 January 2014 by Kireji Haiku (talk | contribs) (added check against percentage range)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: vector GradientValue( vector start, vector end, float percentage );Returns a vector that is the color vector between start and end depending upon percentage.
• vector | start | – | Gradient start color | |
• vector | end | – | Gradient end color | |
• float | percentage | – | Percentage in the range (0.0 to 100.0) from start to end |
Specification
<lsl> // Created by Ugleh Ulrik
vector GradientValue(vector start, vector end, float percentage) {
if (percentage < 0.0
Examples
<lsl> vector GradientValue(vector start, vector end, float percentage) {
if (percentage < 0.0See Also
Constants
• | PRIM_COLOR | |||
• | CHANGED_COLOR |
Functions
• | llGetColor | |||
• | llGetLinkPrimitiveParams | |||
• | llSetColor | |||
• | llSetLinkColor |
Articles
• | Color and Scripting | |||
• | Color |