From fbb8a2170c16bc6ecb5fbead4ed195a984c82a2b Mon Sep 17 00:00:00 2001 From: "Daniel J. Ramirez" Date: Sun, 1 May 2016 13:34:25 -0500 Subject: [PATCH] Documented ColorRamp (cherry picked from commit c2bdb3727b14aff4de2504221e55c7574da4b60b) --- doc/base/classes.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index f5db36022e4..815488da032 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -8054,8 +8054,10 @@ + Color interpolator node + Given a set of colors, this node will interpolate them in order, meaning, that if you have color 1, color 2 and color3, the ramp will interpolate (generate the colors between two colors) from color 1 to color 2 and from color 2 to color 3. Initially the ramp will have 2 colors (black and white), one (black) at ramp lower offset offset 0 and the other (white) at the ramp higher offset 1. @@ -8064,12 +8066,14 @@ + Adds the specified color to the end of the ramp, with the specified offset + Removes the color at the index [i]offset[/i] @@ -8078,6 +8082,7 @@ + Sets the offset for the ramp color at index [i]point[/i] @@ -8086,6 +8091,7 @@ + Returns the offset of the ramp color at index [i]point[/i] @@ -8094,6 +8100,7 @@ + Sets the color of the ramp color at index [i]point[/i] @@ -8102,6 +8109,7 @@ + Returns the color of the ramp color at index [i]point[/i] @@ -8110,36 +8118,42 @@ + Returns the interpolated color specified by [i]offset[/i] + Returns the number of colors in the ramp + Sets the offset for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements, all new colors will be black by default. + Returns the offsets for the colors in this ramp + Sets the colors for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements. + Returns the colors in the ramp