2013-06-12から1日間の記事一覧

Processing 幅と高さ

壊滅的な英語翻訳能力を衆目に曝しながら今日はこれ。Width and Height. void setup() { size(640,360); } void draw() { background(127); noStroke(); for(int i = 0; i { fill(129, 206,15); rect(0, i, width, 10); fill(255); rect(i, 0, 10, height); …

Processingの例:座標

今日はこれ。Coordinates.size(640, 360); background(0); noFill(); //上下の点 stroke(255); point(width * 0.5, height * 0.5); point(width * 0.5, height * 0.25); //青っぽい線 stroke(0, 153, 255); line(0, height*0.33, width, height*0.33); //橙…