@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
MoebiusColorwith nearest color name mapping MoebiusPalettesfor generating color palettesMoebiusSVGHelperfor generating SVG paths for colored pie slices.
Returns
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'