npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

surfacecurve-color

v0.3.1

Published

A flexible, intuitive Javascript color manipulation library

Downloads

58

Readme

surfacecurve-color

A flexible, intuitive Javascript color manipulation library.

Usage

surfacecurve-color is based off of pusher.color. See pusher.color's homepage for full documentation until the fork is complete.

Examples

TBD.

Benchmarks

TBD.

Unit Tests

$ npm test

Currently requires a global install of nodeunit.

License

Released under the MIT License.

Development

Acknowledgments

Change Log

0.3.0
  • Renamed to surfacecurve-color
0.2.5
  • Released 2013.10.09
  • Download pusher.color.js
  • -- Code Changes --
  • Add contrastText() method
  • Updated luminance() to account for non-linear sRGB gamut
  • Added luminanceFast() for the "old" calculation
0.2.4
  • Released 2013.03.29
  • Unit tests: 543/543
  • Download pusher.color.js
  • -- Code Changes --
  • Add inc() and dec() methods
  • Added new unit tests
0.2.3
  • Released 2013.03.26
  • Unit tests: 461/461
  • Download pusher.color.js
  • -- Code Changes --
  • Converted project to NPM & bower compatible package
  • Added new unit tests
0.2.2
  • Released 2013.03.24
  • Unit tests: 244/244
  • -- Code Changes --
  • Fix for HSL parsing code. Improperly setting value to floor.
0.2.1
  • Released 2012.10.08
  • Production size: 13.0k/4.5k Unit tests: 241/241
  • -- Code Changes --
  • Fix Firefox-specific defect with regular expression. Thanks Thomas Hoppe for reporting the error. Thanks to mrrena's blog helping elucidate the issue and fix.
0.2.0
  • Released 2012.09.08
  • Download production / development
  • Production size: 12.9k/4.5k Unit tests: 241/241
  • -- Code Changes --
  • Changed internal format to floating-point
  • Added luminance8(), grayvalue8()
  • Changed lumninance(), and grayvalue() to return a 0.0-1.0 ranged value
  • Added add() method
  • Added subtract() method
  • Added multiply() method
  • Added xor() method
  • Added clamp() method
0.1.4
  • Released 2012.09.08
  • Download production / development
  • Production size: 12.7k/4.4k Unit tests: 229/229
  • -- Code Changes --
  • Minor internal changes for better performance
0.1.3
  • Released 2012.08.09
  • Download production / development
  • Production size: 12.2k/4.2k Unit tests: 229/229
  • -- Code Changes --
  • Add support for packed_rgba format
  • Add support for packed_argb format
0.1.2
  • Released 2012.07.03
  • -- Code Changes --
  • Fix defect in float4 parsing
  • Add support for HSVA '[op] [value]' syntax, where op is '=,+,+=,-,-=,,='
  • Add method grayvalue to return strict average of RGB
  • Add method luminance to return weighted average of RGB
  • Fix defect in blend where alpha values were clamped to 0 or 1
  • Add method hueRange
  • Add methods rgb8 and rgba8
0.1.1
  • Released 2012.06.09
  • Production size 10.6k/3.4k
  • Add support for html(format) including format 'keyword'
  • Add initial unit tests
  • Consolidate parsing code into more structured form
  • Add percentage support to more color specifications
0.1.0
  • Released 2012.06.07
  • Initial release with known limitations
  • Development size 10.6k
  • Support for all standard CSS3, HSV, and float formats