class

Godot::Gradient

Inherits Godot::Resource < Godot::RefCounted < Godot::Object < Reference < Object

Constructors

new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Instance methods

add_point(offset : Float64, color : Color) : Void
Source
colors

Property colors getter

Source
colors=(val)

Property colors setter

Source
get_color(point : Int64) : Color
Source
get_colors
Source
get_interpolation_color_space
Source
get_interpolation_mode
Source
get_offset(point : Int64) : Float64
Source
get_offsets
Source
get_point_count
Source
interpolation_color_space

Property interpolation_color_space getter

Source
interpolation_color_space=(val : Int)

Property interpolation_color_space setter

Source
interpolation_mode

Property interpolation_mode getter

Source
interpolation_mode=(val : Int)

Property interpolation_mode setter

Source
offsets

Property offsets getter

Source
offsets=(val)

Property offsets setter

Source
remove_point(point : Int64) : Void
Source
reverse
Source
sample(offset : Float64) : Color
Source
set_color(point : Int64, color : Color) : Void
Source
set_colors(colors : Pointer(Void)) : Void
Source
set_interpolation_color_space(interpolation_color_space : Int64) : Void
Source
set_interpolation_mode(interpolation_mode : Int64) : Void
Source
set_offset(point : Int64, offset : Float64) : Void
Source
set_offsets(offsets : Pointer(Void)) : Void
Source

Nested types