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

Function drawVirtualJoystick

src/mobile/index.ts:169–177  ·  view source on GitHub ↗
(js: VirtualJoystick)

Source from the content-addressed store, hash-verified

167}
168
169export function drawVirtualJoystick(js: VirtualJoystick): void {
170 if (!js.active) return;
171
172 const bgColor: Color = { r: 255, g: 255, b: 255, a: 60 };
173 const handleColor: Color = { r: 255, g: 255, b: 255, a: 140 };
174
175 drawCircleLines(js.originX, js.originY, js.radius, bgColor);
176 drawCircle(js.handleX, js.handleY, js.radius * 0.4, handleColor);
177}
178
179// ============================================================
180// Virtual Button

Callers

nothing calls this directly

Calls 2

drawCircleLinesFunction · 0.90
drawCircleFunction · 0.90

Tested by

no test coverage detected