Click or drag to resize

CanvasItemDrawPolygon Method

Draws a polygon of any amount of points, convex or concave.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void DrawPolygon(
	Vector2[] points,
	Color[] colors,
	Vector2[] uvs = null,
	Texture texture = null,
	Texture normalMap = null,
	bool antialiased = false
)

Parameters

points
Type: GodotVector2

[Missing <param name="points"/> documentation for "M:Godot.CanvasItem.DrawPolygon(Godot.Vector2[],Godot.Color[],Godot.Vector2[],Godot.Texture,Godot.Texture,System.Boolean)"]

colors
Type: GodotColor

[Missing <param name="colors"/> documentation for "M:Godot.CanvasItem.DrawPolygon(Godot.Vector2[],Godot.Color[],Godot.Vector2[],Godot.Texture,Godot.Texture,System.Boolean)"]

uvs (Optional)
Type: GodotVector2
If the parameter is null, then the default value is new Vector2[] {}
texture (Optional)
Type: GodotTexture

[Missing <param name="texture"/> documentation for "M:Godot.CanvasItem.DrawPolygon(Godot.Vector2[],Godot.Color[],Godot.Vector2[],Godot.Texture,Godot.Texture,System.Boolean)"]

normalMap (Optional)
Type: GodotTexture

[Missing <param name="normalMap"/> documentation for "M:Godot.CanvasItem.DrawPolygon(Godot.Vector2[],Godot.Color[],Godot.Vector2[],Godot.Texture,Godot.Texture,System.Boolean)"]

antialiased (Optional)
Type: SystemBoolean

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

See Also