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.