遊んで航海記

思いつきで遊んだり、ゲームを作ったり、寝たり

2015-05-31から1日間の記事一覧

今日のスケッチ「はじける新緑」@P5

int n = 0; void setup() { size(480, 480); noStroke(); background(255); } void draw() { fill(255, 60); rect(0, 0, width, height); translate(width/2, height/2); n += 5 - ((frameCount / 600) % 2); rotate(radians(n) * 0.5f); scale((n % 10) * 0…