Satoshi,

You just need to tell the oval to use a center point. Like this:

oval 50, 50, 30, :center => true

Cheers.

On Sat, Oct 11, 2008 at 1:05 PM, Satoshi Asakawa <[EMAIL PROTECTED]> wrote:

> _why et al,
>
> I got a question about :top and :left positions in the forum of
> RubyLearning.org.
>
> When I create an oval shape, like
>   oval :left => 50, :top => 50, :width => 30
>
> The :left and :top positions are the top-left corner of the oval.
>
> But I create an star shape, like
>   star :left => 50, :top => 50, :points => 5, :outer => 15, :inner => 10
>
> The :left and :top positions are the center of the star.
>
> Umm... this behavior is a spec or a bug?
>
> Regards,
> ashbb
>
>

Reply via email to