import rita.*; /* * @desc Use MoveTo to move text objects around */ RiText rt, rt2; void setup() { size(500,500); RiText.setDefaultFont("SynchroLET-32.vlw"); rt = new RiText(this, "HELLO"); rt.fill(255, 0, 0); rt2 = new RiText(this, "GOODBYE"); reset(); } void reset() { rt.setLocation(100,100); rt.moveTo(rt.x, height+25, 3); rt2.setLocation(300,400); rt2.moveTo(rt2.x, 0, 3); } void mouseClicked() { reset(); } void draw() { background(255); }