Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 464 Bytes
void setup() {
size(960, 540, P3D);
pixelDensity(displayDensity());
noLoop();
stroke(0);
strokeWeight(15);
}
void draw() {
background(255);
translate(width/2, height/2, 0);
// 縦横に5つの点を表示
for (int x = -2; x <= 2; x++) {
for (int y = -2; y <= 2; y++) {
float pointX = x * 50;
float pointY = y * 50;
float pointZ = -x * 50;
point(pointX, pointY, pointZ);
}
}
saveFrame("sketch06.jpg");
}