On Tue, Sep 09, 2008 at 08:57:35PM -0400, jerry anning wrote:
> Shoes.app(:height => 640, :width => 640) do
>   background orange
>   stroke green
>   strokewidth 5
>   fill yellow
>   shape :left => 30, :top => 30 do
>     line_to 50, 30
>     curve_to 100, 100, 10, 20, 100, 50
>     line_to 20, 100
>     line_to 30, 30
>   end
> end

Oh, yes, well done noticing this.  Just pushed some fixes to get
this working right.  In addition, these kinds of shapes now work in
image blocks.

> Also, are there plans to make it possible to rotate a gradient? This would
> be useful, for instance, to show direction of lighting.

You can use :angle to rotate a gradient on most elements.

  Shoes.app do
    background "#DFA".."#F90", :angle => 45
  end

Or, let's say you want to do a fill:

  Shoes.app do
    fill "#000".."#FFF", :angle => 45
    oval 10, 10, 200
  end

_why

Reply via email to