2017-07-30から1日間の記事一覧

ramdom_rotate_lines01

void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); background(0, 0, 100); strokeWeight(1); smooth(); frameRate(5); } void draw() { int xstep = 1; int ystep = 50; float lastx = -999; float lasty = -999; float ynoise = random…

rotate_lines01

void setup() { size(500, 500); colorMode(HSB, 360, 100, 100, 100); background(360); smooth(); } void draw() { pushMatrix(); translate(width/2, height/2); rotate(frameCount); line(0, 0, width, height); popMatrix(); } void mousePressed() { b…