Astroid
Import
import { astroid } from "@sarmal/core/curves/astroid"; A hypocycloid with 4 sharp cusps, forming a star-like shape within a square boundary.
Equation
Parameters
| Family | Hypocycloid |
| Period | 2π |
| Default Speed | 1.1 |
| Skeleton | static |
Key Features
- 4 sharp cusps at cardinal points
- Star-like shape inscribed in a square
- Classic hypocycloid with n=4
Usage
Standard
import { createSarmal } from "@sarmal/core";
import { astroid } from "@sarmal/core/curves/astroid";
const canvas = document.getElementById("spinner") as HTMLCanvasElement;
const sarmal = createSarmal(canvas, astroid); React
import { Sarmal } from "@sarmal/react";
import { astroid } from "@sarmal/core/curves/astroid";
function App() {
return <Sarmal curve={astroid} />;
}