Home  >  Article  >  Web Front-end  >  Mathematical art from Vortex parametric equation

Mathematical art from Vortex parametric equation

Linda Hamilton
Linda HamiltonOriginal
2024-10-18 10:41:29130browse

With some inspiration from Pinterest (I lossed the original link already) I implemented this Javascript that draw the following parametric curves. And to my surprise, every single one values of the parameters (aaaa,bbbb,cccc) generate a different design:

function x(t) {
return Math.cos(t)+1/3*(Math.cos(aaaa*t)+Math.sin(bbbb*t));
}
function y(t) {
return Math.sin(t)+1/3*(Math.sin(aaaa*t)+Math.cos((bbbb-cccc)*t));
}

https://tthtlc.github.io/vortex_explore.html

and here are the different design:

Mathematical art from Vortex parametric equation

Mathematical art from Vortex parametric equation

Mathematical art from Vortex parametric equation

Mathematical art from Vortex parametric equation

Mathematical art from Vortex parametric equation

Mathematical art from Vortex parametric equation

Mathematical art from Vortex parametric equation

Mathematical art from Vortex parametric equation

Mathematical art from Vortex parametric equation

The above is the detailed content of Mathematical art from Vortex parametric equation. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn