(6.0.0 Shader) rainbow - JujuAdams/ScribbleOldDocs GitHub Wiki
vec4 rainbow(float characterIndex, float weight, float speed, vec4 color)
Returns: The position after the application of a pulse effect
Datatype | Name | Purpose |
---|---|---|
float |
characterIndex |
Index for this character |
float |
weight |
Blend weight (0 to 1 ) between the input color and the rainbow color. A value of 0.4 is 40% rainbow, 60% rainbow |
float |
speed |
The color scrolling speed. Higher values changes the rainbow color faster |
vec4 |
color |
Current color for the character |