speice.io/blog/2024-11-15-playing-with-fire/src/pdj.ts

9 lines
262 B
TypeScript

// hidden-start
import { Variation } from './variations'
//hidden-end
export function pdj(a: number, b: number, c: number, d: number): Variation {
return (x, y) => [
Math.sin(a * y) - Math.cos(b * x),
Math.sin(c * x) - Math.cos(d * y)
]
}