Skip to content

Instantly share code, notes, and snippets.

async function drawArc(
on,
percent = 50,
percent2 = -1
) {
const canvSize = 200;
const canvas = new DrawContext();
canvas.opaque = false;
const canvWidth = 18; // circle thickness
const canvRadius = 80; // circle radius