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

better-hsv

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-hsv

better hsv

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

###better HSV

HSV is an abbreviation to hue, saturation and value.

HSV calculate value which means the lightness of color by get the max value of r, g, b of the color.

It's a HSV color bar where each color has the equality saturation and value in HSV. But it's obviously to find that the lightness is not always equality.

hsv

For example, here are two colors with a HEX format: '#AACC99' and '#88CC00', the HSV values of both colors are 0xCC. It's the reason for the color bar above.

And this is a color bar by my better hsv.

better hsv

###API

/*
 * transform the origin hsv
 * @param r g b, integer, 0~255
 * @return for instarnce: 'FFBB90', string
*/
_hsv2rgb

/*
 * transform by better hsv
 * @param r g b, integer, 0~255
 * @return for instarnce: 'FFBB90', string
*/
hsv2rgb

rgb2str
//rgb2str(0xcc, 0xab, 0x80)
//return '#CCAB80'

Keywords

FAQs

Package last updated on 28 Dec 2015

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