mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
20 lines
304 B
Plaintext
20 lines
304 B
Plaintext
PShape rocket;
|
|
|
|
public void setup() {
|
|
size(640, 360, P3D);
|
|
orientation(LANDSCAPE);
|
|
|
|
rocket = loadShape("rocket.obj");
|
|
}
|
|
|
|
public void draw() {
|
|
background(0);
|
|
|
|
lights();
|
|
|
|
translate(width/2, height/2 + 100, -200);
|
|
rotateX(PI);
|
|
rotateY(frameCount * 0.01f);
|
|
shape(rocket);
|
|
}
|