Axel Etzold wrote:
Pavel and _why,

thanks for responding to my animation question. It's nice that I need to start only one drawing
process rather than many.
But I have a question about Windows crashing when I draw many objects, as that was apparently
a problem when I misused animate and draw ...

Actually, I want to make a Shoes program that imitates this :

http://blog.thejit.org/wp-content/jit-1.0a/examples/rgraph.html

(Click on a graph vertex off the centre, and it moves in spirals to the centre and redraws the whole graph ...)

Can one say something about how many such vertices might be in a graph before Windows will crash ... ?

Best regards,

Axel



[EMAIL PROTECTED] wrote:
_why,

My original interest was to change fill color of an oval. But it looks like that fill, stroke and strokewidth are not "styles" in this convention. Is redrawing the only option?

Regards,
Pavel Sokolov


On Thu, Jun 12, 2008 at 6:35 PM, _why <[EMAIL PROTECTED]> wrote:
On Thu, Jun 12, 2008 at 12:39:39PM +0400, Pavel Sokolov wrote:
> I did not manage to find in manual description of .move method  and a way to
> change styles of graphic elements already drawn. Any hint on the latter?

It's the `style` method and it takes a hash.  And if you call `style`
without any parameters, you get the current settings.

 Shoes.app do
   @p = para "I want to get BIG.", :size => 10
   button "OK" do
     @p.style :size => (@p.style[:size] + 2)
   end
 end

So, this example will increase the font of the paragraph by two
pixels in size every time you click the button.

_why



Reply via email to