2 import { browser } from '$app/environment';
3 import { canvas } from '$lib/stores/canvas';
9 document.documentElement.style.setProperty('--dot-size', kDotSize + 'px');
10 document.documentElement.style.setProperty(
12 kDotSize - ($canvas.x % kDotSize) + 'px'
14 document.documentElement.style.setProperty(
16 kDotSize - ($canvas.y % kDotSize) + 'px'
22 <div class="background" />
31 background: radial-gradient(#aaa, #aaa 1px, #fff 1px, #fff var(--dot-size));
32 background-size: var(--dot-size) var(--dot-size);
33 background-position: var(--dot-x) var(--dot-y);