Skip to content

Instantly share code, notes, and snippets.

Last active December 30, 2016 09:20
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Go to, start the experience and run this code in the console
document.getElementById( 'loading' ).style.display = 'none';
var speed = .001; // changes the rate of rotation
var distance = 4; // changes the distance the point travels
function _update() {
bAmDrawing = true;
lastMouseX = 0; lastMouseY = 0;
var a = speed *;
var x = distance * Math.cos( a );
var y = distance * Math.sin( a );
stage.mousemove( { data: { global : { x: x, y: y } } } )
function _animate() {
setTimeout( _animate, 1000 );
Copy link

But before executing, select the execution context to draw-container as the actual script needs to run inside the correct iframe

Copy link

spite commented Dec 16, 2016

Right, when starting from the main page.
The instructions say "go to", to skip the embed altogether.

Copy link

Oh, I had it open already and haven't noticed that the URL was different, my bad! Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment