public/assets/js/paperscript.js
// The onFrame function is called up to 60 times a second:
The onFrame function is called up to 60 times a second.
The onFrame function is called up to 60 times a second .
function onFrame(event) {
    for (var i = 0; i < count; i++) {
        var item = project.activeLayer.children[i];
        if (!(item.bounds.top)) {
        }
        item.position.y += item.bounds.width / 10;
        if (item.bounds.top > view.size.height) {
            item.position.y = -item.bounds.height;
        }
        item.rotate(item.bounds.width / 100);
    }
}
function onFrame ( event ) { for ( var i = 0 ; i < count ; i ++ ) { var item = project . activeLayer . children [ i ] ; if ( ! ( item . bounds . top ) ) { } item . position . y += item . bounds . width / 10 ; if ( item . bounds . top > view . size . height ) { item . position . y = - item . bounds . height ; } item . rotate ( item . bounds . width / 100 ) ; } }
The onFrame function is called up to 60 times a second:
The onFrame function is called up to 60 times a second :
// Run through the active layer's children list and change // the position of the placed symbols: // Move the item 1/20th of its width to the right. This way // larger circles move faster than smaller circles: // If the item has left the view on the right, move it back // to the left: