Last active
December 21, 2016 11:34
-
-
Save jeonghopark/e37835b40194ab2015d6f03e3ccdb466 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ArrayList<PVector> meshPos = new ArrayList(); | |
| void setup() { | |
| size(800, 500, P3D); | |
| for (int i=0; i<20; i++) { | |
| meshPos.add(new PVector( i * 10, 0, 0) ); | |
| } | |
| } | |
| void draw() { | |
| background(120); | |
| beginShape(TRIANGLE_STRIP); | |
| for (int i=0; i<meshPos.size(); i++) { | |
| vertex(meshPos.get(i).x, meshPos.get(i).y, meshPos.get(i).z); | |
| vertex(meshPos.get(i).x, meshPos.get(i).y + 20, meshPos.get(i).z); | |
| } | |
| endShape(CLOSE); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.