speice.io/blog/2024-11-15-playing-with-fire/2-transforms/buildBlend.ts

17 lines
585 B
TypeScript
Raw Normal View History

2024-12-01 21:57:10 -05:00
import {Coefs} from "../src/coefs";
2024-11-30 17:35:42 -05:00
import {VariationProps} from "./VariationEditor";
import {linear} from "../src/linear";
import {julia} from "../src/julia";
import {popcorn} from "../src/popcorn";
import {pdj} from "../src/pdj";
import {pdjParams} from "../src/params";
2024-12-01 21:57:10 -05:00
import {VariationBlend} from "../src/blend";
2024-11-30 17:35:42 -05:00
export function buildBlend(coefs: Coefs, variations: VariationProps): VariationBlend {
return [
[variations.linear, linear],
[variations.julia, julia],
[variations.popcorn, popcorn(coefs)],
[variations.pdj, pdj(pdjParams)]
]
}