すごく久しぶりに、プログラムで遊んだ。遊びは大切である。
void setup(){ size(400,400); background(255); noLoop(); } void draw(){ float pointx=-20,pointy=0; background(255); //stroke(200,0,0); noStroke(); rectMode(CENTER); colorMode(RGB); //X Axis for(int i=0;i<10;i++) { //pointx = random(400); //pointy = random(400); pointx = pointx + 40; pointy = 100; fill(0,255,0,90); rect(pointx,pointy-10,30,5); rect(pointx,pointy,5,40); } //Y Axis pointy=0; for(int i=0;i<10;i++) { //pointx = random(400); //pointy = random(400); pointy = pointy +42; pointx = 200; fill(0,255,0,90); rect(pointx,pointy-10,30,5); rect(pointx,pointy,5,40); } saveFrame("test.png"); }