mirror of
https://github.com/bspeice/speice.io
synced 2024-12-23 00:58:09 -05:00
10 lines
267 B
TypeScript
10 lines
267 B
TypeScript
// hidden-start
|
|
import {Coefs} from './coefs'
|
|
import {Variation} from './variations'
|
|
// hidden-end
|
|
export function popcorn({c, f}: Coefs): Variation {
|
|
return (x, y) => [
|
|
x + c * Math.sin(Math.tan(3 * y)),
|
|
y + f * Math.sin(Math.tan(3 * x))
|
|
];
|
|
} |