Search


Search something to see results

convertColor

Converts a color to another color space

Parameters

  • arena: AstArena
  • token: number
  • to: ColorType

    const token = arena.createColor('#F00', ColorType.HEX)
    const result = convertColor(arena, token, ColorType.LCH);

Returns number | null