import processing.core.*; import java.applet.*; import java.awt.*; import java.awt.image.*; import java.awt.event.*; import java.io.*; import java.net.*; import java.text.*; import java.util.*; import java.util.zip.*; public class week2_3 extends PApplet { public void setup() { size(200,200); background(128); framerate(10); // declare a variable inside a BLOCK we can only see/use the variable within that block // it is LOCAL in scope int mypoint = 1; } public void draw() { // This will now give us an error mypoint = mypoint + 1; line(0,0,mypoint,mypoint); } // If we define it outside the block, we can see it everywhere, it is GLOBAL in scope. static public void main(String args[]) { PApplet.main(new String[] { "week2_3" });}}