Heart Math
/**
* 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
);
}
}
}
}
}