Click or drag to resize

Shape2DDraw Method

Draws a solid shape onto a CanvasItem with the VisualServer API filled with the specified color. The exact drawing method is specific for each shape and cannot be configured.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void Draw(
	RID canvasItem,
	Color color
)

Parameters

canvasItem
Type: GodotRID

[Missing <param name="canvasItem"/> documentation for "M:Godot.Shape2D.Draw(Godot.RID,Godot.Color)"]

color
Type: GodotColor

[Missing <param name="color"/> documentation for "M:Godot.Shape2D.Draw(Godot.RID,Godot.Color)"]

See Also