Monday, January 19, 2009

Presto Picture



Linda posted about how much she's enjoying Graffiti over at facebook, which got me thinking about how much fun Flash code used to be, before it got so difficult. In Graffiti you can post a drawing on somebody else's wall, and they can play back the actual drawing of it.

It's a matter of stuffing the x and y position inside appropriate arrays, when you draw your picture, then loading those positions back in to make the playback. This isn't as pretty as a Graffiti picture, but it does the same general thing.

6 comments:

Linda Davick said...

That's your house, isn't it!

Sally, what I realized as I watched your picture was: the element of surprise that a drawing like this can have (because of the fact that everything doesn't show up at once.) Great opportunity for a punchline of some sort.

Quasi is horizontal as usual. I love the way you draw frogs.

Namowal (Jennifer Bourne) said...

Cute picture. Nice to see Quasi and Anita again. And is that the Night Owl lounging nearby...?

I'm trying to wrap my pea brain around your Flash "play back the drawing" trick. Are you saying you set it up to the position of each pixel that's drawn, so you can later use that data to redraw the picture?

Sally said...

Linda, if you ever get back into the card thing, you could definitely do a surprise drawing, although there are lots of other ways to do a redrawing.

Namowal, and others. I could send the two flas and you could make something better of it.

Anonymous said...

I should try flash again maybe. It's been so long.

RHSteeleOH said...

You make it look so easy :)

Sally said...

Linda, you're exactly right about the surprise element. Might be worth reviewing some of those optical illusions where it looks like it's one thing, and then it turns out to be something else.

The thing about my rougher method is you can load your own drawing into one Flash file first, then trace over it as you record the x and ys, so you really can decide exactly how you want to play it out. I just didn't spend much time with it.

Namo, it's recording the x,y each time the movie clip (a little circle) is duplicated. Basically what you're describing then is correct.

And RH, it really isn't very complicated, but thanks for the compliment.