Gradient

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.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

addPoint
void addPoint(double offset, Color color)

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

getColor
Color getColor(long point)

Returns the color of the ramp color at index point

getColors
PoolColorArray getColors()
getOffset
double getOffset(long point)

Returns the offset of the ramp color at index point

getOffsets
PoolRealArray getOffsets()
getPointCount
long getPointCount()

Returns the number of colors in the ramp

interpolate
Color interpolate(double offset)

Returns the interpolated color specified by offset

opAssign
Gradient opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Gradient other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
removePoint
void removePoint(long offset)

Removes the color at the index offset

setColor
void setColor(long point, Color color)

Sets the color of the ramp color at index point

setColors
void setColors(PoolColorArray colors)
setOffset
void setOffset(long point, double offset)

Sets the offset for the ramp color at index point

setOffsets
void setOffsets(PoolRealArray offsets)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

colors
PoolColorArray colors [@property setter]

Gradient's colors returned as a PoolColorArray.

colors
PoolColorArray colors [@property getter]

Gradient's colors returned as a PoolColorArray.

offsets
PoolRealArray offsets [@property getter]
PoolRealArray offsets [@property setter]

Gradient's offsets returned as a PoolRealArray.

Static functions

_new
Gradient _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta