bitcolor
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

bitcolor

Current status of Test and Lint workflow Current status of Deploy docs workflow Current status of Publish package workflow

npm npm

Small and simple color manipulation library.

Document

Installation

Use Yarn or npm.

yarn add bitcolor
 
# or npm 
npm i bitcolor

Usage

Just use exported functions!

import { fromRgb, toHexString, blend } from 'bitcolor'
 
const red = fromRgb(255, 0, 0)
const blue = fromRgb(0, 0, 255)
 
const purple = blend(red, blue)
 
console.log(toHexString(purple)) // #ff00ff

Development

See CONTRIBUTING.md.

Readme

Keywords

Package Sidebar

Install

npm i bitcolor

Weekly Downloads

10

Version

0.4.0

License

MIT

Unpacked Size

74.8 kB

Total Files

32

Last publish

Collaborators

  • pockawoooh