Skip to main content
100%

Rhodonea Curve

✓ Published0🌍 Public
Aalexmacy
Last edited Jun 29, 2017
Created on Jun 29, 2017

Rhodonea curves, also known as rose curves, are drawn as animated red line tracings on a white canvas. Two sliders control integer parameters *a* and *b*, and the curve morphs smoothly between parameter combinations via a tweening function. The code uses the Canvas 2D API with `beginPath`, `lineTo`, and `stroke` to render 7200 computed points, where each point combines sine and cosine terms scaled by the window size. The animation runs via `requestAnimationFrame`, and sliders update the displayed parameter values.

AI-generated description

This is some exploration of Rhodonea curves (a.k.a rose curves). Also see what Jason Davies did <a href="https://www.jasondavies.com/rhodonea/" target="_blank">here</a>.

mit Licensed

Similar vizzes