Skip to content

types.triangle_drawable

A drawable triangle

Functions

new(): types.triangle_drawable

Creates a new triangle drawable

position(x : number, y : number): types.triangle_drawable

Sets the position

bounds(width : number, height : number): types.triangle_drawable

Sets the bounds

base_color(color : types.color): types.triangle_drawable

Sets the base color

grad_color(color : types.color): types.triangle_drawable

Sets the gradient color

gradient_mode(mode : enums.gradient_mode): types.triangle_drawable

Sets the gradient mode

outline(thickness : number, color : types.color): types.triangle_drawable

Sets the outline

insert(canvas : types.ui_canvas)

Inserts the drawable into a canvas