Gradient

    Category: Core

    Color interpolator node.

    Properties

    Description

    Given a set of colors, this node will interpolate them in order, meaning, that if you have color 1, color 2 and color 3, 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 0 and the other (white) at the ramp higher offset 1.

    • colors

    Gradient’s offsets returned as a .

    Method Descriptions

    • void add_point ( float offset, color )

    Adds the specified color to the end of the ramp, with the specified offset


    Returns the color of the ramp color at index point


    • float get_offset ( point ) const

    • int get_point_count ( ) const

    Returns the number of colors in the ramp


    • interpolate ( float offset )

    Returns the interpolated color specified by offset


    • void remove_point ( offset )

    Removes the color at the index offset



    • void set_offset ( int point, offset )

    Sets the offset for the ramp color at index point