Click or drag to resize

CanvasItemDrawArc Method

Draws an arc between the given angles. The larger the value of point_count, the smoother the curve.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void DrawArc(
	Vector2 center,
	float radius,
	float startAngle,
	float endAngle,
	int pointCount,
	Color color,
	float width = 1f,
	bool antialiased = false
)

Parameters

center
Type: GodotVector2

[Missing <param name="center"/> documentation for "M:Godot.CanvasItem.DrawArc(Godot.Vector2,System.Single,System.Single,System.Single,System.Int32,Godot.Color,System.Single,System.Boolean)"]

radius
Type: SystemSingle

[Missing <param name="radius"/> documentation for "M:Godot.CanvasItem.DrawArc(Godot.Vector2,System.Single,System.Single,System.Single,System.Int32,Godot.Color,System.Single,System.Boolean)"]

startAngle
Type: SystemSingle

[Missing <param name="startAngle"/> documentation for "M:Godot.CanvasItem.DrawArc(Godot.Vector2,System.Single,System.Single,System.Single,System.Int32,Godot.Color,System.Single,System.Boolean)"]

endAngle
Type: SystemSingle

[Missing <param name="endAngle"/> documentation for "M:Godot.CanvasItem.DrawArc(Godot.Vector2,System.Single,System.Single,System.Single,System.Int32,Godot.Color,System.Single,System.Boolean)"]

pointCount
Type: SystemInt32

[Missing <param name="pointCount"/> documentation for "M:Godot.CanvasItem.DrawArc(Godot.Vector2,System.Single,System.Single,System.Single,System.Int32,Godot.Color,System.Single,System.Boolean)"]

color
Type: GodotColor

[Missing <param name="color"/> documentation for "M:Godot.CanvasItem.DrawArc(Godot.Vector2,System.Single,System.Single,System.Single,System.Int32,Godot.Color,System.Single,System.Boolean)"]

width (Optional)
Type: SystemSingle

[Missing <param name="width"/> documentation for "M:Godot.CanvasItem.DrawArc(Godot.Vector2,System.Single,System.Single,System.Single,System.Int32,Godot.Color,System.Single,System.Boolean)"]

antialiased (Optional)
Type: SystemBoolean

[Missing <param name="antialiased"/> documentation for "M:Godot.CanvasItem.DrawArc(Godot.Vector2,System.Single,System.Single,System.Single,System.Int32,Godot.Color,System.Single,System.Boolean)"]

See Also