MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / bar

Function bar

app/rcc/scripts/painter/segment_display.js:28–31  ·  view source on GitHub ↗
(px, py, pw, ph, on)

Source from the content-addressed store, hash-verified

26 const t = Math.max(2, h * 0.10);
27
28 function bar(px, py, pw, ph, on) {
29 ctx.fillStyle = on ? theme.widget_text : theme.widget_border;
30 ctx.fillRect(px, py, pw, ph);
31 }
32
33 bar(x + t, y, w - 2 * t, t, segs[0]); // a
34 bar(x + w - t, y + t, t, h * 0.5 - t * 1.5, segs[1]); // b

Callers 1

drawDigitFunction · 0.85

Calls 1

fillRectMethod · 0.80

Tested by

no test coverage detected