遊んで航海記

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

今日のスケッチ

今日のスケッチ「トンガリクラゲ」@P5

void setup() { size(480, 480); noStroke(); } void draw() { fill(0, 10); rect(0, 0, width, height); for(int i=0; i なにかvertex使ってぼんやりさせているうちにこうなりました。まったくゴールを意識しないで作るので、気楽なもんです。 プログラムは…

今日のスケッチ「はじける新緑」@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…

今日のスケッチ「落ち着いてる場合じゃないぜ」@P5

void setup() { size(480, 480); } void draw() { background(0); translate(width / 2, height / 2); float f = frameCount * 0.7f; float a = sin(f / 100); float b = sin(f / 300); float w = width / 2; for(int i=0; i 疲れて帰ってプログラムを書きた…