Created
August 17, 2016 21:50
-
-
Save jugalpatel803/0cc90626163bd45516df72e7180c6b14 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| d3.timer(function() { | |
| var angle = velocity * (Date.now() - then); | |
| canvas.each(function(i) { | |
| var rotate = [0, 0, 0], context = this.getContext("2d"); | |
| rotate[i] = angle, projection.rotate(rotate); | |
| context.clearRect(0, 0, diameter, diameter); | |
| context.beginPath(), path.context(context)(land), context.fill(); | |
| context.beginPath(), path(globe), context.stroke(); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment