Project

gradients

0.0
No commit activity in last 3 years
No release in over 3 years
Colours! Colours! The creeping chaos fucks my mind. Generate gradients because colors are fun.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
~> 1.3.0
 Project Readme

Gradients¶ ↑

Make fun gradients, and then find colours within them:

Gradients.new('#000000', '#ffffff').at(0.5).to_s
=> '808080'
Gradients.new('#000000', '#ffffff').at(0.5).to_s(:whex)
=> '#808080'

Or, add lots of colours:

Gradients.new('#000000', '#ff0000', #ffffff').at(0.75).to_s(:whex)
=> '#ff8080'

And so forth…