DipoleSystem magnets; float vacuum = 1256; float zdist = 1.0; float zdisp = 1.0; int colormode = 0; void setup() { size(670,540); magnets = new DipoleSystem(); initGUI(); smooth(); } void draw() { background(255); magnets.run(); runGUI(); }