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