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

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

Parameters

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