Skip to content

1681-engine / index / LineDrawer

Type Alias: LineDrawer ​

ts
type LineDrawer = (x0, y0, x1, y1, color?) => void;

Defined in: src/debug/DebugOverlay.ts:14

Draws one line in world coordinates (a turned collider's edge, a ray), in color (default green).

Parameters ​

ParameterType
x0number
y0number
x1number
y1number
color?number

Returns ​

void

Released under the MIT License.