// Create the object with the run() method Runnable runnable = new BasicThread2(); void setup() { size(400, 400); background(127); // Create the thread supplying it with the runnable object Thread thread = new Thread(runnable); // Start the thread thread.start(); frameRate(600); } void draw() { }