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

Function drawRect

src/shapes/index.ts:18–20  ·  view source on GitHub ↗
(x: number, y: number, width: number, height: number, color: Color)

Source from the content-addressed store, hash-verified

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);
20}
21
22export function drawRectRec(rec: Rect, color: Color): void {
23 bloom_draw_rect(rec.x, rec.y, rec.width, rec.height, color.r, color.g, color.b, color.a);

Callers 6

drawHUDFunction · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90

Calls 1

bloom_draw_rectFunction · 0.50

Tested by

no test coverage detected