In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Heart Math

Get Adobe Flash player
by fila 28 May 2015
    Embed
/**
 * Copyright fila ( http://wonderfl.net/user/fila )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/mQ4E
 */

package {
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            super.graphics.lineStyle(2,0xFF0000);
            with (Math) {
                for(var t:Number = 0; t < 7; t+= 0.025) {
                   super.graphics.drawCircle(
                       250 + 5*16*sin(t)*sin(t)*sin(t),
                       250 - 5*(13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t)),
                       1
                   );
                }
            }
        }
    }
}