Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitcolor

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcolor

Small and simple color manipulation library

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 22 Nov 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc