ActionScript love formula

ActionScript love formula

ActionScript Love Formula Screenshot

Ok I didn't really found the love formula, but I recently have fun reading this so called Romantic Mathematics webpage which gives dozen of formulas to draw heart with mathematics only. Thanks to @codinghorror who let me discover this.

I know that it will not be a great programming challenge, but I couldn't resist to implement one of those formulas in ActionScript. It was funny to show the result to some of my coworkers last friday afternoon. One of them even asked me "And what is that intended for?" ... what a lack of romanticism! ;)

The formula I used :

The formula used for the drawing
 

ViewSource is enabled on right-click, redraw on click :

Get Adobe Flash player

 

You can view source, download source for Flex Builder or download source for Flash

Next step, create the 3D heart with formulas given by the author. I will probably have less fun with this one as it can't be computed without cheating (and cheating with love is something I of course personally publicly not encourage...), but it's worst a look.

Comments

That’s great.
I think I should make a study of mathematics.

Leave a comment

Javascript must be activated to post

  rss rss english xhtml 1.1 css 2.0 wdg