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

r=cos(5t)x=rcos(t)y=rsin(t)\begin{aligned}r = \cos(5t) &\\x = r\cos(t) &\\y = r\sin(t) &\end{aligned}

Parameters

Family Rose
Period
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} />;
}