// ReakType // 2006 // TypePattern X // by Michael Pichler import processing.opengl.*; void setup(){ size(800,600,OPENGL); background(255); PFont font; font = loadFont ("HelveticaNeue-48.vlw"); textFont(font, 10); textAlign(LEFT); fill(255); } void draw(){ if (mousePressed == true) { fill(0); } else{ fill(255); } noStroke(); int randomDegrees = int(random(360)); float randomRadiant = radians(randomDegrees); int randomDistance = int(random(60)); float randomPosX = mouseX + (cos(randomRadiant)*randomDistance); float randomPosY = mouseY + (sin(randomRadiant)*randomDistance); text("x", randomPosX,randomPosY); if (mouseButton == RIGHT) { fill(51); ellipseMode(CENTER); ellipse(200, 300, 1, 1); } }