UNPKG

@thi.ng/geom-fuzz

Version:

Highly configurable, fuzzy line & polygon creation with presets and composable fill & stroke styles. Canvas & SVG support

6 lines (5 loc) 151 B
import { jitter } from "@thi.ng/vectors/jitter"; const jitterPoints = (pts, scl = 5) => pts.map((p) => jitter([], p, scl)); export { jitterPoints };