Socket
Socket
Sign inDemoInstall

bitcolor

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bitcolor

Small and simple color manipulation library


Version published
Weekly downloads
6
Maintainers
1
Install size
73.1 kB
Created
Weekly downloads
 

Changelog

Source

[0.4.0] - 2019-11-22

Added

  • Add fromHwb function.
  • Add fromCssString function.

Readme

Source

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.

Keywords

FAQs

Last updated on 22 Nov 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc