SvelteKit and Canvas: separating wheel rendering, probability and verification
A spinning wheel combines several different jobs: editing a list, drawing slices, choosing a stopping position, animating the rotation and reporting a winner. Treating all of that as one visual effect