Category: BitmapData

The Day The Earth Stood Still

I’ve watched this movie “The Day The Earth Stood Still” on last Sunday, the movie is ok for me, nothing really surprise but one scene in the movie make me wanna do some experimental in the flash. If you don’t want to be spoiled please skip the next bit that I’m gonna write next. And if you read here that mean you don’t care the spoiled, well the scene that the alien flies try to get in the mirror. The animation is quite cool and I think that is some kind of old trick animation by “Brownian” equation so I’ve done some experimental below:

Simple Brownian Movement:

Simple Brownian

Adapted version, try to make its come out closer to the film:

Brownian 2
(Click anywhere on the stage to restart the animation)

25lines code experimental

I’ve submit my code for competition at 25lines but my one still not as good enough for get in the final list, all of the final list are very cool and good to see. By the way, it’s quite fun to try to code. So after failed from the final list, I’m continue working on it a bit more for my fun and try to keep it as 25 lines. The result is quite impress now for me. The quick result is show as the image below:

25lines

The idea is using the camera as the eye for flash to sketch your image on screen. If you move and cause the original image which is you compare to the current draw on screen look different then program will blur those different section out and start to draw from the most blur to more clear again. The output also give the feeling of teleport from one place to another you move from one location to another quickly.

warning: for slow machine, this may cook your cpu 🙂

BenchMark with leaves version 2

After have some fun with the first version then I’ve update some math and fine tune some attributes to allow more leaf to be able to render. Next version expect to do something more random and closer to nature.

Benchmark 2

This version can increase the number of leaf to 60 and able to decrease down to 10. But sorry for auto repeat for increase and decrease button. I’ll add in next version if the next version is happen.

BenchMark with leaves.

This experimental in the night is so fun but right now I’m feeling so sleepy, gotta go sleep and will play more with this one later.

Benchmark Version1

The spiral shape is scaling by using “Fibonacci” number and all animation use TweenMax.

The winter has come to Bangkok!!

Winter has come in Bangkok now so let’s create a little camp fire to keep warm 🙂

You can add more fire power by using the top right slider bar but be careful the more fire power the more cpu consumption need. (but I think it is not too bad for AS3 and new flash player to handle it nowadays)

camp fire

This one write with AS3 which generate each fire element and draw each pixel to the stage real time.

I’m sorry for the source code for now, my blog still not render the code nicely, I’ll find around to set it to show the code better and will post the code of how it work again. By the way, hopefully this dump fire make you guy feel warmer in this winter. (at least from the cpu temperature that going up during run this camp fire)