//Grabbing with the mouse, and flicking left or right. //There is a reasonable feeling of energy being put in to the scroll effort and then slowing to a stop. // Matthew Joyce PFont myFont; int W,H; int units=365; int unitsize=50; int lopx=0; int hipx=units*unitsize; int lpos=lopx; int tick1=unitsize; int tick2=tick1/2; int tick3=tick2/12; int test=200; kscroll scroller=new kscroll(); event[] arrEvent=new event[test]; void setup() { size(600,300); W=width; H=height; smooth(); frameRate(30); colorMode(RGB,255,255,255,100); //noLoop(); stroke(100); myFont = createFont("illume_illume_LiberationSans-Regular.ttf", 16); textFont(myFont); gen_random_events(test); }//setup() void draw() { background(0); draw_scale(); lpos=constrain(lpos-int(scroller.slowdown()),lopx,hipx-W); for(int i=0; i