destructure arcs for animate

This commit is contained in:
bakedpotatolord 2025-06-01 15:58:40 -06:00
commit 425f8eb6d4

View file

@ -350,6 +350,21 @@ kiri.load(() => {
stock = settings.stock;
rez = 1/Math.sqrt(density/(stock.x * stock.y));
//destructure arcs into path points
path = path.map(o=>
o.arcPoints
? o.arcPoints.map(point=>
({
...o,
point
})
)
: o
)
.flat();
const step = rez;
const stepsX = Math.floor(stock.x / step);
const stepsY = Math.floor(stock.y / step);