Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple rainbow palette creator.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.