Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Colours! Colours! The creeping chaos fucks my mind. Generate gradients because colours are fun.
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
README.rdoc
Rakefile
gradients.gemspec

README.rdoc

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…

Something went wrong with that request. Please try again.