Skip to content

@phun-ky/moebius / Moebius

Function: Moebius()

ts
function Moebius(): MoebiusReturnType;

Defined in: main.ts:68

Function

Initializes and returns Moebius utilities with dynamic color naming support.

This includes:

  • A subclass of MoebiusColor with nearest color name mapping
  • MoebiusPalettes for generating color palettes
  • MoebiusSVGHelper for generating SVG paths for colored pie slices.

Returns

MoebiusReturnType

An object containing Moebius utility classes

Async

Example

ts
const moebius = await Moebius();
const color = new moebius.MoebiusColor('#abc123');
console.log(color.name); // Closest color name, e.g., 'Avocado'