@zhuxian/color-tool
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

color-tool

一款hex颜色值、rgb颜色值、hsl颜色值、hsb互相转换的工具函数

Install

npm install @zhuxian/color-tool

eg:

import {colorHexToRgb} from "color-tool";

const hexRgb = colorHexToRgb("#FF80ED");
console.log(hexRgb);

···

colorHexToRgb

colorRgbToHex

colorRgbToHsl

colorHslToRgb

colorHsbToHsl

colorHslToHsb

Interfaces

Thanks Framework7

framework7

Readme

Keywords

Package Sidebar

Install

npm i @zhuxian/color-tool

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.33 kB

Total Files

4

Last publish

Collaborators

  • zhuxian