fix: use replicate for ! in mondo

This commit is contained in:
Felix Roos 2025-10-20 21:38:43 +02:00
parent 188f0e9098
commit 20e5fdedfb
No known key found for this signature in database

View file

@ -5,7 +5,7 @@ import {
slow, slow,
seq, seq,
stepcat, stepcat,
extend, replicate,
expand, expand,
pace, pace,
chooseIn, chooseIn,
@ -36,7 +36,7 @@ lib.square = (...args) => stepcat(...args).setSteps(1);
lib.angle = (...args) => stepcat(...args).pace(1); lib.angle = (...args) => stepcat(...args).pace(1);
lib['*'] = fast; lib['*'] = fast;
lib['/'] = slow; lib['/'] = slow;
lib['!'] = extend; lib['!'] = replicate;
lib['@'] = expand; lib['@'] = expand;
lib['%'] = pace; lib['%'] = pace;
lib['?'] = degradeBy; // todo: default 0.5 not working.. lib['?'] = degradeBy; // todo: default 0.5 not working..