Joel VanderWerf
2/16/2009 8:38:00 PM
Joel VanderWerf wrote:
> Phlip wrote:
>> Diego Virasoro wrote:
>>> Hello,
>>> I would need to create a very simple visualisation for some scientific
>>> work I am doing. Basically I need to draw points in a 2D graph (and
>>> specify which colours to use) and each time the user presses the
>>> spacebar it should move to the next iteration and show (say with a
>>> line) where everyone is.
>>>
>>> What would be the simplest way to go about this?
>>
>> Any GUI tool with the word "canvas" in it, such as TkCanvas.
>
> TkCanvas is pretty good for 2D animations.
On second thought...
Writing ruby/tk code directly (rather than over a socket as I suggested)
is probably a better idea for an animation that's this simple.
- tkar is especially good if you want to define some complex shapes and
then move them about, rotate them, change their shape params, etc.
- using ruby/tk directly may be better if you have a grid of colored
squares and just want to change each square's color over time. Probably
there's even an example you could adapt.
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407