Appearance
types.line_drawable
A drawable 2D line
Functions
new(): types.line_drawable
Creates a new line drawable
- returns (
types.line_drawable) A new line drawable instance
point(x : number, y : number, opt_color : types.color): types.line_drawable
Adds a point to the line
- x (
number) The x position - y (
number) The y position - opt_color (
types.color) (optional) The color for this point
color(color : types.color): types.line_drawable
Sets the default color for new points
- color (
types.color) The default color
insert(canvas : types.ui_canvas)
Inserts the drawable into a UI canvas
- canvas (
types.ui_canvas) The UI canvas to insert into
