This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = 0.0; | |
var t = 0; | |
var drawHeart = function() { | |
if(a < Math.PI / 2 || a > Math.PI * 3/2) | |
a += 0.20; // for old ghost values: 0.35; | |
else | |
a += 0.10; // for old ghost values: 0.25; // the top part is more detailed | |
if(a >= Math.PI * 2) | |
a = 0; |