@fantasy-color/rgba-to-hsva
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

@fantasy-color/rgba-to-hsva

Transform a RGBA color object to a HSVA color object.

type rgbaToHsva = (color: RGBA) => HSVA

Example usage:

import rgbaToHsva from '@fantasy-color/rgba-to-hsva'

rgbaToHsva({
  red: 60,
  green: 32,
  blue: 23,
  alpha: 0.5
})
// { hue: 15, saturation: 62, value: 24, alpha: 0.5 }

Readme

Keywords

none

Package Sidebar

Install

npm i @fantasy-color/rgba-to-hsva

Weekly Downloads

1

Version

2.1.0

License

MIT

Unpacked Size

11.1 kB

Total Files

9

Last publish

Collaborators

  • ijigg
  • moria.am
  • atilaz
  • gideon.gur
  • irminakacz
  • fernando.3
  • xaviervia
  • psxcode
  • deepsweet