Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

simple-color-convert

tobiaswaelde4ISC1.0.0TypeScript support: included

This package provides functions to simple convert HSV, HSL and RGB colors into each other

HSL, HSV, RGB, convert, color

readme

Simple Color Convert

Functions

  • hsv2hsl
  • hsl2hsv
  • hsv2rgb
  • rgb2hsv
  • hsl2rgb
  • rgb2hsl

Usage

import { hsv2rgb, rgb2hsv } from 'simple-color-convert';

const rgb = hsv2rgb(300, 0.9, 0.5);
const hsv = rgb2hsv(255, 0, 0);