@thi.ng/geom-fuzz
Version:
Highly configurable, fuzzy line & polygon creation with presets and composable fill & stroke styles. Canvas & SVG support
17 lines (16 loc) • 317 B
JavaScript
import { defHatch } from "./hatch.js";
const defHatchPen = (color, dir = "d", thick = 8, space = 1, steps = 4) => defHatch({
dir,
space: thick * space,
line: {
attribs: {
stroke: color,
weight: thick
},
jitter: thick * space * 0.25,
resample: steps
}
});
export {
defHatchPen
};