Rose (n=3)
Import
import { rose3 } from "@sarmal/core/curves/rose3"; A 3-petaled rose curve with trifold symmetry, created using a polar equation.
Equation
Parameters
| Family | Rose |
| Period | 2π |
| Default Speed | 1.15 |
| Skeleton | static |
Key Features
- 3 petals with radial symmetry
- Polar equation: r = cos(3t)
- Classic rhodonea curve
Usage
Standard
import { createSarmal } from "@sarmal/core";
import { rose3 } from "@sarmal/core/curves/rose3";
const canvas = document.getElementById("spinner") as HTMLCanvasElement;
const sarmal = createSarmal(canvas, rose3); React
import { Sarmal } from "@sarmal/react";
import { rose3 } from "@sarmal/core/curves/rose3";
function App() {
return <Sarmal curve={rose3} />;
}