Add comment

This commit is contained in:
Aria
2025-10-01 00:39:44 -05:00
parent a14bf4d97b
commit c885d84785
+3 -2
View File
@@ -3594,8 +3594,9 @@ export const morph = (frompat, topat, bypat) => {
*
*/
const algoNames = ['scurve', 'soft', 'hard', 'cubic', 'diode', 'asym', 'fold', 'sinefold', 'chebyshev'];
for (const name of algoNames) {
const distAlgoNames = ['scurve', 'soft', 'hard', 'cubic', 'diode', 'asym', 'fold', 'sinefold', 'chebyshev'];
for (const name of distAlgoNames) {
// Add aliases for distortion algorithms
Pattern.prototype[name] = function (args) {
const argsPat = reify(args).fmap((v) => (Array.isArray(v) ? [...v, name] : [v, 1, name]));
return this.distort(argsPat);