Sketch class for MyPig project

public class Sketch extends PApplet { public boolean debugging = true; //turn true to show bounding box PigComponent myPig; public void settings() { fullScreen(); } public void setup() { myPig = new Torso(new PVector(width/2, height/2), new PVector(300,200), this); } public void draw() { background(200); myPig.draw(); } }
Put this in your Sketch.java

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.