mirror of
https://github.com/bspeice/speice.io
synced 2025-04-27 00:01:45 -04:00
10 lines
268 B
TypeScript
10 lines
268 B
TypeScript
// hidden-start
|
|
import { Coefs } from "./transform";
|
|
import { Variation } from "./variation";
|
|
// hidden-end
|
|
export const popcorn =
|
|
({ c, f }: Coefs): Variation =>
|
|
(x, y) => [
|
|
x + c * Math.sin(Math.tan(3 * y)),
|
|
y + f * Math.sin(Math.tan(3 * x))
|
|
]; |