Small animations in canvas

I would like to do some simple animations, like have a rectangle seem to grow in size and then shrink a little. I can’t for the life of me find out a nice and simple way to do this.

Another related question could be, how to update a window once a thread finishes working ? In Objective C you have performSelectorOnMainThread, but all I am able to find out is to use a timer, but that doesn’t feel like fine development to me. Kind of hackish.

[quote=89484:@Trausti Thor Johannsson]I would like to do some simple animations, like have a rectangle seem to grow in size and then shrink a little. I can’t for the life of me find out a nice and simple way to do this.

Another related question could be, how to update a window once a thread finishes working ? In Objective C you have performSelectorOnMainThread, but all I am able to find out is to use a timer, but that doesn’t feel like fine development to me. Kind of hackish.[/quote]

Trausti,

Check out this project Tomas wrote. It appears to do exactly what you are looking for.

https://forum.xojo.com/6604-free-control-for-dashboards

HTH,
Mike

[quote=89491:@Mike Cotrone]Trausti,

Check out this project Tomas wrote. It appears to do exactly what you are looking for.

https://forum.xojo.com/6604-free-control-for-dashboards

HTH,
Mike[/quote]

Sorry Wrong Link:::And I can’t edit. :slight_smile:

http://blog.tempel.org/

Thomas wrote this project for OS X That grows/Shrinks A canvas and Window.