Rose (n=5/2)

Import

import { rose52 } from "@sarmal/core/curves/rose52";

A 5-petaled rose curve with a fractional n=5/2, requiring two full revolutions to complete. The head passes through the center between petals, creating elegant crossing trails.

Equation

r=cos ⁣(52t)x=rcos(t)y=rsin(t)\begin{aligned}r = \cos\!\left(\tfrac{5}{2}t\right) &\\x = r\cos(t) &\\y = r\sin(t) &\end{aligned}

Parameters

Family Rose
Period
Default Speed 0.8
Skeleton static

Key Features

  • 5 petals traced over two full revolutions (period 4π)
  • Head crosses through the center between petals
  • Fractional n=5/2 creates denser, more intricate trail crossings than integer-n roses

Usage

Standard

import { createSarmal } from "@sarmal/core";
import { rose52 } from "@sarmal/core/curves/rose52";

const canvas = document.getElementById("spinner") as HTMLCanvasElement;
const sarmal = createSarmal(canvas, rose52);

React

import { Sarmal } from "@sarmal/react";
import { rose52 } from "@sarmal/core/curves/rose52";

function App() {
  return <Sarmal curve={rose52} />;
}