Add comment
This commit is contained in:
parent
a14bf4d97b
commit
c885d84785
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue