Deltoid

Import

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

A 3-cusped hypocycloid tracing a triangular-like curve with curved sides.

Equation

x=2cos(t)+cos(2t)y=2sin(t)sin(2t)\begin{aligned}x = 2\cos(t) + \cos(2t) &\\y = 2\sin(t) - \sin(2t) &\end{aligned}

Parameters

Family Hypocycloid
Period
Default Speed 0.9
Skeleton static

Key Features

  • 3 cusps creating triangular symmetry
  • Curved sides between cusps
  • Classic hypocycloid with n=3

Usage

Standard

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

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

React

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

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