2017-08-10から1日間の記事一覧

rotate_rects01

int x = 0; int y = 0; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); smooth(); rectMode(CENTER); noStroke(); background(0, 0, 0); } void draw() { fill(68, frameCount%100, 100); rect(x, y, 10, 10); rect(x, height-y, 10, 10); …