C#: Properties are not wrapped. use Set and Get with the names below. The class itself
is registered as GeomFillCorners in Godot.
A color at each corner, interpolated across the shape. On the canvas a is top-left and the rest follow clockwise; in 3D a is bottom-left and the rest follow counterclockwise.
From code
The code used to generate this page's thumbnail.
var fill := GeomFillCorners.new()
fill.a = EMBER
fill.b = TEAL
fill.c = PINK
fill.d = AMBER
var rect := GeomRect2D.new()
rect.position = c - Vector2(r * 0.62, 0.0)
rect.size = Vector2(r * 1.0, r * 1.0)
rect.corner_radii = Vector4(0.12, 0.12, 0.12, 0.12)
rect.fill = fill
add_child(rect)
var disc := GeomDisc2D.new()
disc.position = c + Vector2(r * 0.62, 0.0)
disc.radius = r * 0.5
disc.fill = fill
add_child(disc) var fill = Geom.Resources.FillCorners();
fill.Set("a", EMBER);
fill.Set("b", TEAL);
fill.Set("c", PINK);
fill.Set("d", AMBER);
var rect = Geom.Nodes.Rect2D();
rect.Position = c - new Vector2(r * 0.62f, 0.0f);
rect.Set("size", new Vector2(r * 1.0f, r * 1.0f));
rect.Set("corner_radii", new Vector4(0.12f, 0.12f, 0.12f, 0.12f));
rect.Set("fill", fill);
AddChild(rect);
var disc = Geom.Nodes.Disc2D();
disc.Position = c + new Vector2(r * 0.62f, 0.0f);
disc.Set("radius", r * 0.5f);
disc.Set("fill", fill);
AddChild(disc); Properties
Property descriptions
Color a = Color(1, 0.3, 0.42, 1)
The first corner, or a quad's first point.
Color b = Color(1, 0.78, 0.36, 1)
The next corner after a, or the second point.
Color c = Color(0.42, 0.85, 1, 1)
The corner opposite a, or the third point.
Color d = Color(0.55, 0.98, 0.78, 1)
The last corner, or a quad's fourth point. Unused by a triangle.