Deltoid
Import
import { deltoid } from "@sarmal/core/curves/deltoid"; A 3-cusped hypocycloid tracing a triangular-like curve with curved sides.
Equation
Parameters
| Family | Hypocycloid |
| Period | 2π |
| 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} />;
}