Removing Topics from SVN

This commit is contained in:
Casey Reas
2011-09-05 23:44:10 +00:00
parent b99624cdb4
commit 4fc6dcca86
219 changed files with 0 additions and 31091 deletions
@@ -1,36 +0,0 @@
/**
* Tickle.
*
* The word "tickle" jitters when the cursor hovers over.
* Sometimes, it can be tickled off the screen.
*/
String message = "tickle";
float x, y; // X and Y coordinates of text
float hr, vr; // horizontal and vertical radius of the text
void setup() {
size(640, 360);
textAlign(CENTER, CENTER);
textSize(48);
hr = textWidth(message) / 2;
vr = (textAscent() + textDescent()) / 2;
noStroke();
x = width / 2;
y = height / 2;
}
void draw() {
// Instead of clearing the background, fade it by drawing
// a semi-transparent rectangle on top
fill(204, 120);
rect(0, 0, width, height);
fill(0);
// If the cursor is over the text, change the position
if (abs(mouseX - x) < hr &&
abs(mouseY - y) < vr) {
x += random(-5, 5);
y += random(-5, 5);
}
text("tickle", x, y);
}