MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / drawLine

Function drawLine

src/shapes/index.ts:14–16  ·  view source on GitHub ↗
(startX: number, startY: number, endX: number, endY: number, thickness: number, color: Color)

Source from the content-addressed store, hash-verified

12// Drawing functions
13
14export function drawLine(startX: number, startY: number, endX: number, endY: number, thickness: number, color: Color): void {
15 bloom_draw_line(startX, startY, endX, endY, thickness, color.r, color.g, color.b, color.a);
16}
17
18export function drawRect(x: number, y: number, width: number, height: number, color: Color): void {
19 bloom_draw_rect(x, y, width, height, color.r, color.g, color.b, color.a);

Callers

nothing calls this directly

Calls 1

bloom_draw_lineFunction · 0.50

Tested by

no test coverage detected