AnimationMorph

Alan Kay Alan.Kay at squeakland.org
Sun Feb 17 13:47:19 UTC 2002


Jim --

Why not just use holders in etoys? This is the way children do 
animations in Squeak ....

Cheers,

Alan

-----

At 8:14 PM -0800 2/16/02, Jim Benson wrote:
>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
>
>
>
>
>Content-Type: application/octet-stream;
>	name="SystemWindow-closeBoxHit.st.gz"
>Content-Disposition: attachment;
>	filename="SystemWindow-closeBoxHit.st.gz"
>
>Attachment converted: Macintosh HD:SystemWindow-closeBoxHit.st.gz 
>(????/----) (0004E46F)
>Content-Type: application/octet-stream;
>	name="AnimationMorph.st.gz"
>Content-Disposition: attachment;
>	filename="AnimationMorph.st.gz"
>
>Attachment converted: Macintosh HD:AnimationMorph.st.gz (????/----) (0004E470)


-- 



More information about the Squeak-dev mailing list