removing applet folders from svn

This commit is contained in:
benfry
2011-04-17 17:50:52 +00:00
parent 433feb6247
commit eb8c319af5
626 changed files with 0 additions and 32342 deletions

View File

@@ -1,70 +0,0 @@
import processing.core.*;
import java.applet.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.text.*;
import java.util.*;
import java.util.zip.*;
import java.util.regex.*;
public class Mouse1D extends PApplet {
/**
* Mouse 1D.
*
* Move the mouse left and right to shift the balance.
* The "mouseX" variable is used to control both the
* size and color of the rectangles.
*/
int gx = 15;
int gy = 35;
float leftColor = 0.0f;
float rightColor = 0.0f;
public void setup()
{
size(200, 200);
colorMode(RGB, 1.0f);
noStroke();
}
public void draw()
{
background(0.0f);
update(mouseX);
fill(0.0f, leftColor + 0.4f, leftColor + 0.6f);
rect(width/4-gx, width/2-gx, gx*2, gx*2);
fill(0.0f, rightColor + 0.2f, rightColor + 0.4f);
rect(width/1.33f-gy, width/2-gy, gy*2, gy*2);
}
public void update(int x)
{
leftColor = -0.002f * x/2 + 0.06f;
rightColor = 0.002f * x/2 + 0.06f;
gx = x/2;
gy = 100-x/2;
if (gx < 10) {
gx = 10;
} else if (gx > 90) {
gx = 90;
}
if (gy > 90) {
gy = 90;
} else if (gy < 10) {
gy = 10;
}
}
static public void main(String args[]) {
PApplet.main(new String[] { "Mouse1D" });
}
}

View File

@@ -1,50 +0,0 @@
/**
* Mouse 1D.
*
* Move the mouse left and right to shift the balance.
* The "mouseX" variable is used to control both the
* size and color of the rectangles.
*/
int gx = 15;
int gy = 35;
float leftColor = 0.0;
float rightColor = 0.0;
void setup()
{
size(200, 200);
colorMode(RGB, 1.0);
noStroke();
}
void draw()
{
background(0.0);
update(mouseX);
fill(0.0, leftColor + 0.4, leftColor + 0.6);
rect(width/4-gx, width/2-gx, gx*2, gx*2);
fill(0.0, rightColor + 0.2, rightColor + 0.4);
rect(width/1.33-gy, width/2-gy, gy*2, gy*2);
}
void update(int x)
{
leftColor = -0.002 * x/2 + 0.06;
rightColor = 0.002 * x/2 + 0.06;
gx = x/2;
gy = 100-x/2;
if (gx < 10) {
gx = 10;
} else if (gx > 90) {
gx = 90;
}
if (gy > 90) {
gy = 90;
} else if (gy < 10) {
gy = 10;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB