Gradient

Inherits: Resource < RefCounted < Object

There is currently no description for this class. Please help us by contributing one!

Properties

PackedColorArray

colors

PackedColorArray(0, 0, 0, 1, 1, 1, 1, 1)

ColorSpace

interpolation_color_space

0

InterpolationMode

interpolation_mode

0

PackedFloat32Array

offsets

PackedFloat32Array(0, 1)

Methods

void

add_point ( float offset, Color color )

Color

get_color ( int point )

float

get_offset ( int point )

int

get_point_count ( ) const

void

remove_point ( int point )

void

reverse ( )

Color

sample ( float offset )

void

set_color ( int point, Color color )

void

set_offset ( int point, float offset )


Enumerations

enum InterpolationMode:

InterpolationMode GRADIENT_INTERPOLATE_LINEAR = 0

There is currently no description for this enum. Please help us by contributing one!

InterpolationMode GRADIENT_INTERPOLATE_CONSTANT = 1

There is currently no description for this enum. Please help us by contributing one!

InterpolationMode GRADIENT_INTERPOLATE_CUBIC = 2

There is currently no description for this enum. Please help us by contributing one!


enum ColorSpace:

ColorSpace GRADIENT_COLOR_SPACE_SRGB = 0

There is currently no description for this enum. Please help us by contributing one!

ColorSpace GRADIENT_COLOR_SPACE_LINEAR_SRGB = 1

There is currently no description for this enum. Please help us by contributing one!

ColorSpace GRADIENT_COLOR_SPACE_OKLAB = 2

There is currently no description for this enum. Please help us by contributing one!


Property Descriptions

PackedColorArray colors = PackedColorArray(0, 0, 0, 1, 1, 1, 1, 1)

There is currently no description for this property. Please help us by contributing one!


ColorSpace interpolation_color_space = 0

  • void set_interpolation_color_space ( ColorSpace value )

  • ColorSpace get_interpolation_color_space ( )

There is currently no description for this property. Please help us by contributing one!


InterpolationMode interpolation_mode = 0

There is currently no description for this property. Please help us by contributing one!


PackedFloat32Array offsets = PackedFloat32Array(0, 1)

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

void add_point ( float offset, Color color )

There is currently no description for this method. Please help us by contributing one!


Color get_color ( int point )

There is currently no description for this method. Please help us by contributing one!


float get_offset ( int point )

There is currently no description for this method. Please help us by contributing one!


int get_point_count ( ) const

There is currently no description for this method. Please help us by contributing one!


void remove_point ( int point )

There is currently no description for this method. Please help us by contributing one!


void reverse ( )

There is currently no description for this method. Please help us by contributing one!


Color sample ( float offset )

There is currently no description for this method. Please help us by contributing one!


void set_color ( int point, Color color )

There is currently no description for this method. Please help us by contributing one!


void set_offset ( int point, float offset )

There is currently no description for this method. Please help us by contributing one!