Star (7-arm)

Import

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

A 7-pointed star shape built from Fourier harmonics in polar coordinates.

Equation

r=cos ⁣(72t)+0.35cos ⁣(212t)+0.15cos ⁣(352t)x=rcos(t)y=rsin(t)\begin{aligned}r = \left|\cos\!\left(\tfrac{7}{2}t\right)\right| + 0.35\left|\cos\!\left(\tfrac{21}{2}t\right)\right| + 0.15\left|\cos\!\left(\tfrac{35}{2}t\right)\right| &\\x = r\cos(t) &\\y = r\sin(t) &\end{aligned}

Parameters

Family Fourier polar
Period
Default Speed 1
Skeleton static

Key Features

  • 7 sharp tips from base frequency 7t/2
  • Same harmonic construction as Star but with 7-fold symmetry
  • Fully closed in a single revolution

Usage

Standard

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

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

React

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

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