Simple rainbow palette creator.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.document
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE.txt
README.rdoc
Rakefile
VERSION
palette_creator.gemspec

README.rdoc

palette_creator

A module to generate a rainbox palette of colours, suitable for use in graphs. E.g.

Based on the ideas presented in Making annoying rainbows in javascript by Jim Bumgardner.

Usage

require 'palette_creator'

palette = PaletteCreator::create(:count => 32) # Give a rainbox palette of 32 rgb values

# Convert the rgb triplets to hex
html_hex_palette = palette.map{|rgb| PaletteCreator::rgb_as_hex(rgb)}

Copyright

Copyright © 2012 Sean McCarthy. See LICENSE.txt for further details.