Work      About       Etc




A pattern-tool for Scriptographer (RIP) that generates a different appearance based on the speed the user moves their mouse. Slower, smaller movements will output a small grid of rectangles. Faster and larger movements will output a grid of large rectangles.


var maxNum = 10;
var margin = 5;
var radius = 10;

function onMouseDrag(event){
var group = new Group();
for(var x =0; x for(var y =0; y var path = new Path.Rectangle(event.point.x+x*margin, event.point.y+y*margin,
event.delta.length/2, event.delta.length/2);
path.strokeColor = null;
path.fillColor = CMYKColor(Math.random(), x/20, Math.random(), 0);
path.expand();
group.appendTop(path);
}
}
}