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

Vector_rects01

PVector pos; PVector vel; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); rectMode(CENTER); pos = new PVector(width/2, height/2); background(0, 0, 100); } void draw() { vel = new PVector(random(-5, 5), random(-5, 5)); pos.add…