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

7 lines
282 B
TypeScript
Raw Normal View History

2024-11-30 17:35:42 -05:00
// hidden-start
import {Coefs} from "../src/coefs";
import {Transform} from "../src/transform";
import {applyCoefs} from "../src/coefs";
// hidden-end
export const transformPost = (transform: Transform, coefs: Coefs): Transform =>
2024-12-09 22:18:13 -05:00
(x, y) => applyCoefs(...transform(x, y), coefs)