0.0
No commit activity in last 3 years
No release in over 3 years
randam colors
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 5.0
~> 10.0
 Project Readme

RandPalette

Randomly pick distinct color

Installation

Add this line to your application's Gemfile:

gem 'rand_palette'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rand_palette

Usage

irb(main):001:0> RandPalette.random 5
=> ["rgba(255,0,221,1)", "rgba(255,85,0,1)", "rgba(119,255,0,1)", "rgba(0,255,187,1)", "rgba(0,17,255,1)"]
irb(main):002:0> RandPalette.random 3, alpha: 0.2
=> ["rgba(0,255,153,0.2)", "rgba(153,0,255,0.2)", "rgba(255,153,0,0.2)"]