From c2bdb3727b14aff4de2504221e55c7574da4b60b Mon Sep 17 00:00:00 2001 From: "Daniel J. Ramirez" Date: Sun, 1 May 2016 13:34:25 -0500 Subject: [PATCH] Documented ColorRamp --- doc/base/classes.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index bbd23a7d47e..9577fb2aa9f 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -8288,8 +8288,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. @@ -8298,12 +8300,14 @@ + Adds the specified color to the end of the ramp, with the specified offset + Removes the color at the index [i]offset[/i] @@ -8312,6 +8316,7 @@ + Sets the offset for the ramp color at index [i]point[/i] @@ -8320,6 +8325,7 @@ + Returns the offset of the ramp color at index [i]point[/i] @@ -8328,6 +8334,7 @@ + Sets the color of the ramp color at index [i]point[/i] @@ -8336,6 +8343,7 @@ + Returns the color of the ramp color at index [i]point[/i] @@ -8344,36 +8352,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