JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4178
  • Score
    100M100P100Q123207F
  • License MIT

Simple color conversion library that promotes stability and simplicity

Package Exports

  • colr

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (colr) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

colr

Simple color conversion library based on simplicity and stability

API

new Colr()

Colr.fromHex(string)

Colr.toHex()

Colr.fromRgb(r, g, b)

Colr.fromRgbArray([r, g, b])

Colr.fromRgbObject({r, g, b})

Colr.toRgbArray()

Colr.toRgbObject()