processing--绘制集合图像1
绘制点画面
1 size(900, 600); 2 strokeWeight(6); 3 for (int i=0; i<width; i+=60) { 4 for (int j=0; j<height; j+=40) { 5 push(); 6 translate(0, 200); 7 rotate(-PI/4); 8 push(); 9 translate(i, j); 10 rotate(-PI/4); 11 square(0, 0, 10); 12 point(30, 20); 13 pop(); 14 pop(); 15 } 16 }
效果图:


浙公网安备 33010602011771号