AnimationMorph

Jim Benson jb at speed.net
Sun Feb 17 04:14:55 UTC 2002


After re-reading the literature, one of the fun things that is missing out
of the Self environment for morphic is the cartoon like animations. So I
coded a couple of parts up, and started playing around. It's pretty
interesting, and adds a lot of fun to Squeak.

I noticed when I was playing with the OSX Macs in the store that there was a
little 'poof' animation in the Dock when an app is expanded. I also noticed
that I didn't have a similar 'poof' animation in Squeak.

I felt forsaken. I was worried that I was being left behind. The state of
the art had advanced, and I wasn't a part of it. I felt that I couldn't even
look at myself in the mirror anymore.

Then it came to me in a dream. *I* could code up a 'poof' animation !!!

Here it is. AnimationMorph.st is the code for the animation. Basically you
code up your animation as frames arranged in a vertical strip and store them
in a Form. This Form then becomes the image of the Animation morph. There is
an example in AnimationMorph class>>explode. If your really adventurous,
file in the closeBoxHit code. If you file this in, then every time you close
a SystemWindow the magic explode animation appears. The AnimationMorph is
pretty big when you decompress the file (around  400K), but that's mostly
just the explode animation form.


Enjoy,

Jim Benson



-------------- next part --------------
A non-text attachment was scrubbed...
Name: SystemWindow-closeBoxHit.st.gz
Type: application/octet-stream
Size: 487 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020216/e60697eb/SystemWindow-closeBoxHit.st.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AnimationMorph.st.gz
Type: application/octet-stream
Size: 21048 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020216/e60697eb/AnimationMorph.st.obj


More information about the Squeak-dev mailing list