0.0
No commit activity in last 3 years
No release in over 3 years
Create rainbow colour palettes suitable for graphs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.1.0
~> 1.8.3
~> 3.12
~> 2.8.0
 Project Readme

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 © 2012 Sean McCarthy. See LICENSE.txt for further details.