Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { tidbytCircle } from "https://esm.town/v/andreterron/tidbytCircle";
export async function tidbytSkipped({ size = 7, bg = 0xffffff80, line = 3 }: {
size?: number;
bg?: number;
line?: number;
}) {
const img = await tidbytCircle({
size,
fill: 0xffffff30,
border: 0xffffff80,
});
const center = Math.floor(size / 2);
const dashColor = 0xffffff80;
for (let i = 0; i < line; i++) {
img.setPixelColor(dashColor, center - Math.floor(line / 2) + i, center);
}
return img;
}
October 23, 2023