Files
processing4/android/examples/Topics/Create Shapes/PolygonPShapeOOP/PolygonPShapeOOP.pde
2012-09-05 23:50:25 +00:00

27 lines
317 B
Plaintext

/**
* PolygonPShapeOOP.
*
* Wrapping a PShape inside a custom class
*/
// A Star object
Star s;
void setup() {
size(640, 360, P2D);
orientation(LANDSCAPE);
// Make a new Star
s = new Star();
}
void draw() {
background(51);
// Display the star
s.display();
// Move the star
s.move();
}