C#: Properties are not wrapped. use Set and Get with the names below. The class itself
is registered as GeomFillLinear in Godot.
A gradient along an axis.
From code
The code used to generate this page's thumbnail.
var fill := GeomFillLinear.new()
fill.start = EMBER
fill.end = PINK
fill.angle_degrees = 45.0
var disc := GeomDisc2D.new()
disc.position = c
disc.radius = r
disc.fill = fill
add_child(disc) var fill = Geom.Resources.FillLinear();
fill.Set("start", EMBER);
fill.Set("end", PINK);
fill.Set("angle_degrees", 45.0f);
var disc = Geom.Nodes.Disc2D();
disc.Position = c;
disc.Set("radius", r);
disc.Set("fill", fill);
AddChild(disc); Properties
| float | angle_degrees | 0.0 |
| Color | end | Color(1, 1, 1, 0) |
| Color | start | Color(1, 1, 1, 1) |
Property descriptions
float angle_degrees = 0.0
Direction of the axis, counterclockwise from the shape's local +X. Steps of about 1.4 degrees.
Color end = Color(1, 1, 1, 0)
At the far end.
Color start = Color(1, 1, 1, 1)
At the near end of the axis.