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

Mathematical art from Vortex parametric equation

Linda Hamilton
Release: 2024-10-18 10:41:29
Original
284 people have browsed it

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));
}

Copy after login

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!

source:dev.to
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template