cosmodesktop

Happy Flash/Flex Coder

Tag: Math

Sparker

This is another fun animation from simple math. Mainly function that I use are: linear equation : y = ax + b Brownian Circle : radius to point For tweening between each mode was done by TweenLite and the sparking techniq is base on flash drawing api and linear equation with some tune on the [...]

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 [...]

Useful HexColor Extract Code

This code help me solve many cool effect and also shorten my writing. Also sometime it is easily to forget so here is another good tips to note on here var colour:uint = 0xFF297400; var A:Number = colour >> 24 & 0xFF; var R:Number = colour >> 16 & 0xFF; var G:Number = colour >> [...]

Radians & Degrees

This math always come back to me after a certain of time and take me 5 – 10 minutes to think or look around the correct one. So I write this down for myself and others for save time to look around. radians = degrees * Math.PI / 180 degrees = radians * 180 / [...]

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. This version can increase the number of leaf to 60 and able to decrease down to [...]

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. The spiral shape is scaling by using “Fibonacci” number and all animation use TweenMax.