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
/* | |
Story time, after submitting an update to the demo I planned to make another | |
update for the demo (which I didn't submit in the end) so I edited the code | |
to do some edits etc etc. And maybe you've guessed it, stupid me didn't make | |
a copy of the original source of the demo and just modified the code straight | |
away. Therefore, I have to reverse the changes in the code but I can't seem to | |
restore the changes completely. So, here's the almost original source of the | |
demo. It's not exactly the same as the one submitted, but it's almost the same | |
and the differences between this and the original code should be just very |
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 count = 0; | |
var count2 = 0; | |
var auto = setInterval(function() { | |
var centerX = 300; | |
var centerY = 300; | |
var asd = Math.round(count * 10) / 180 * Math.PI; | |
var radius = 125 + Math.cos(asd) * 25; // wave | |
var radius2 = 0; // flag | |
var radius3 = 75 + Math.cos(asd) * 25; // ghost |