Line
Description:
A class provides functionality for drawing lines using vertices.
Class Object: Line Class.
Inherits from: Node.
depthWrite
Type: Field.
Description:
Whether the depth should be written. (Default is false)
Signature:
depthWrite: boolean
blendFunc
Type: Field.
Description:
Blend function used for rendering the line.
Signature:
blendFunc: BlendFunc
add
Type: Function.
Description:
Adds vertices to the line.
Signature:
add: function(
self: Line,
verts: {Vec2},
color?: Color --[[0xffffffff]]
)
Parameters:
Parameter | Type | Description |
---|---|---|
verts | {Vec2} | Table of vertices to add to the line. |
color | Color | [optional] Color of the line (default is opaque white). |
set
Type: Function.
Description:
Sets vertices of the line.
Signature:
set: function(
self: Line,
verts: {Vec2},
color?: Color --[[0xffffffff]]
)
Parameters:
Parameter | Type | Description |
---|---|---|
verts | {Vec2} | Table of vertices to set. |
color | Color | Color of the line (default is opaque white). |
clear
Type: Function.
Description:
Clears all the vertices of line.
Signature:
clear: function(self: Line)