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

@fantasy-color/rgb-to-hcl

🍱 metarepo of many packages and various monorepos

by bubble-dev

2.1.0 (see all)License:MITTypeScript:Not Found
npm i @fantasy-color/rgb-to-hcl
Readme

@fantasy-color/rgb-to-hcl

Transform a RGB color object to a HCL color object.

type rgbToHcl = (color: RGB) => HCL

Example usage:

import rgbToHcl from '@fantasy-color/rgb-to-hcl'

rgbToHcl({
  red: 60,
  green: 32,
  blue: 23
})
// { hue: 42.99820879411349, chroma: 17.893501433259868, luminance: 15.966897718378611 }

Downloads/wk

9

GitHub Stars

50

LAST COMMIT

1yr ago

MAINTAINERS

9

CONTRIBUTORS

6

OPEN ISSUES

6

OPEN PRs

37
VersionTagPublished
2.1.0
latest
1yr ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate