vertex01
float x, y; void setup() { size(500, 500); colorMode(HSB, 360, 100, 100); background(0, 0, 100); strokeWeight(1); } void draw() { translate(-100, -100); for (int i =0; i < 100; i += 1) { translate(100, 100); x = sin(frameCount) + random(0, 100); y = cos(frameCount)+ random(0, 100); beginShape(); vertex(x, y); vertex(y, x); endShape(); beginShape(); vertex(y, -x); vertex(x, -y); endShape(); beginShape(); vertex(-y, x); vertex(-x, y); endShape(); } }
発表の準備も終わってないけれど,Processingの練習.vertex
の練習.余裕がないので以上です.