Hi Mike and _why,
Thank you for the reply. :)
oval 50, 50, 30, :center => true
works fine! Cool!
But in the case of star,
star 50, 50, 5, 30, 20, :center => false
star 50, 50, 5, 30, 20, :corner => true
Umm... doesn't work well... :(
How can I change the star's coordinate?
And another, I tried the following:
Shoes.app do
nofill
transform :center
oval 50, 50, 30
oval 50, 50, 1
end
Umm... doesn't work well... The oval's coordinate is still corner.
Shoes.app do
nofill
oval(50, 50, 30).transform(:center)
oval 50, 50, 1
end
Oop, an error message occurs...
undefined method 'trasform' for (Shoes::Shape):Shoes::Shape
I must misunderstand something, but I can't find that...
My pc is Windows XP and with Shoes0.r970
Regards,
ashbb
On Sun, Oct 12, 2008 at 6:51 AM, _why <[EMAIL PROTECTED]> wrote:
> On Sun, Oct 12, 2008 at 02:05:17AM +0900, Satoshi Asakawa wrote:
> > 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?
>
> Yes, this is correct. Shoes matches the NodeBox reference in this
> way.
> <http://nodebox.net/code/index.php/Reference>
>
> "Left" and "top" do not mean "left-top" corner. They mean "left"
> and "top" coordinate. For ovals, rects, and arcs, this defaults to
> the corner. You can change to the center point with `transform`.
> <http://help.shoooes.net/Art.html#transform>
>
> _why
>