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

2.1.0 • Public • Published

@fantasy-color/rgb-to-hsv

Transform a RGB color object to a HSV color object.

type rgbToHsv = (color: RGB) => HSV

Example usage:

import rgbToHsv from '@fantasy-color/rgb-to-hsv'

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @fantasy-color/rgb-to-hsv

    Weekly Downloads

    1

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    10.5 kB

    Total Files

    9

    Last publish

    Collaborators

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