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

Function drawPoly

src/shapes/index.ts:42–44  ·  view source on GitHub ↗
(centerX: number, centerY: number, sides: number, radius: number, rotation: number, color: Color)

Source from the content-addressed store, hash-verified

40}
41
42export function drawPoly(centerX: number, centerY: number, sides: number, radius: number, rotation: number, color: Color): void {
43 bloom_draw_poly(centerX, centerY, sides, radius, rotation, color.r, color.g, color.b, color.a);
44}
45
46// Bezier curve drawing (pure TS — subdivides cubic bezier into line segments)
47

Callers

nothing calls this directly

Calls 1

bloom_draw_polyFunction · 0.50

Tested by

no test coverage detected