Click or drag to resize

VisualServerCanvasItemAddLine Method

Adds a line command to the CanvasItem's draw commands.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void CanvasItemAddLine(
	RID item,
	Vector2 from,
	Vector2 to,
	Color color,
	float width = 1f,
	bool antialiased = false
)

Parameters

item
Type: GodotRID

[Missing <param name="item"/> documentation for "M:Godot.VisualServer.CanvasItemAddLine(Godot.RID,Godot.Vector2,Godot.Vector2,Godot.Color,System.Single,System.Boolean)"]

from
Type: GodotVector2

[Missing <param name="from"/> documentation for "M:Godot.VisualServer.CanvasItemAddLine(Godot.RID,Godot.Vector2,Godot.Vector2,Godot.Color,System.Single,System.Boolean)"]

to
Type: GodotVector2

[Missing <param name="to"/> documentation for "M:Godot.VisualServer.CanvasItemAddLine(Godot.RID,Godot.Vector2,Godot.Vector2,Godot.Color,System.Single,System.Boolean)"]

color
Type: GodotColor

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

width (Optional)
Type: SystemSingle

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

antialiased (Optional)
Type: SystemBoolean

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

See Also