A ruby implementation of HUSL, a human-friendly color space
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
husler.gemspec

README.md

Husler Build Status

A ruby implementation of HUSL, a human-friendly color space.

Usage

Husler.rgb_to_husl(r, g, b) # rgb values must be between 0 and 1

Husler.husl_to_rgb(h, s, l) # h(ue) is between 0-360 and s(aturation) and l(ightness) between 0-100

Credit

Algorithms translated from Alexei Boronine's canonical implementation at https://github.com/boronine/husl