A Ruby DSL for generating image gradients and rounded corners
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
README

README

Trying to come up with a nice way to DRY up the process of generating background images for website styling.
The desired syntax would be something like:

image('background-header.png', :width => 5) do
  gradient :white, '#BCBCBC', :height => 50
  solid :red, :height => 10
  gradient '#BCBCBC', :transparent, height => 50
end