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
@@ -1,55 +0,0 @@
import processing.core.*;
import processing.xml.*;
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 DisableStyle extends PApplet {
/**
* Ignore Styles.
* Illustration by George Brower.
*
* Shapes are loaded with style information that tells them how
* to draw (the color, stroke weight, etc.) The disableStyle()
* method of PShape turns off this information. The enableStyle()
* method turns it back on.
*/
PShape bot;
public void setup() {
size(640, 360);
smooth();
// The file "bot1.svg" must be in the data folder
// of the current sketch to load successfully
bot = loadShape("bot1.svg");
noLoop();
}
public void draw() {
background(102);
// Draw left bot
bot.disableStyle(); // Ignore the colors in the SVG
fill(0, 102, 153); // Set the SVG fill to blue
stroke(255); // Set the SVG fill to white
shape(bot, 20, 25, 300, 300);
// Draw right bot
bot.enableStyle();
shape(bot, 320, 25, 300, 300);
}
static public void main(String args[]) {
PApplet.main(new String[] { "DisableStyle" });
}
}
@@ -1,34 +0,0 @@
/**
* Ignore Styles.
* Illustration by George Brower.
*
* Shapes are loaded with style information that tells them how
* to draw (the color, stroke weight, etc.) The disableStyle()
* method of PShape turns off this information. The enableStyle()
* method turns it back on.
*/
PShape bot;
void setup() {
size(640, 360);
smooth();
// The file "bot1.svg" must be in the data folder
// of the current sketch to load successfully
bot = loadShape("bot1.svg");
noLoop();
}
void draw() {
background(102);
// Draw left bot
bot.disableStyle(); // Ignore the colors in the SVG
fill(0, 102, 153); // Set the SVG fill to blue
stroke(255); // Set the SVG fill to white
shape(bot, 20, 25, 300, 300);
// Draw right bot
bot.enableStyle();
shape(bot, 320, 25, 300, 300);
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

@@ -1,66 +0,0 @@
import processing.core.*;
import processing.xml.*;
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 GetChild extends PApplet {
/**
* Get Child.
*
* SVG files can be made of many individual shapes.
* Each of these shapes (called a "child") has its own name
* that can be used to extract it from the "parent" file.
* This example loads a map of the United States and creates
* two new PShape objects by extracting the data from two states.
*/
PShape usa;
PShape michigan;
PShape ohio;
public void setup() {
size(640, 360);
usa = loadShape("usa-wikipedia.svg");
michigan = usa.getChild("MI");
ohio = usa.getChild("OH");
smooth(); // Improves the drawing quality of the SVG
noLoop();
}
public void draw() {
background(255);
// Draw the full map
shape(usa, -600, -180);
// Disable the colors found in the SVG file
michigan.disableStyle();
// Set our own coloring
fill(0, 51, 102);
noStroke();
// Draw a single state
shape(michigan, -600, -180); // Boo Wolverines!
// Disable the colors found in the SVG file
ohio.disableStyle();
// Set our own coloring
fill(153, 0, 0);
noStroke();
// Draw a single state
shape(ohio, -600, -180); // Go Buckeyes!
}
static public void main(String args[]) {
PApplet.main(new String[] { "GetChild" });
}
}
@@ -1,45 +0,0 @@
/**
* Get Child.
*
* SVG files can be made of many individual shapes.
* Each of these shapes (called a "child") has its own name
* that can be used to extract it from the "parent" file.
* This example loads a map of the United States and creates
* two new PShape objects by extracting the data from two states.
*/
PShape usa;
PShape michigan;
PShape ohio;
void setup() {
size(640, 360);
usa = loadShape("usa-wikipedia.svg");
michigan = usa.getChild("MI");
ohio = usa.getChild("OH");
smooth(); // Improves the drawing quality of the SVG
noLoop();
}
void draw() {
background(255);
// Draw the full map
shape(usa, -600, -180);
// Disable the colors found in the SVG file
michigan.disableStyle();
// Set our own coloring
fill(0, 51, 102);
noStroke();
// Draw a single state
shape(michigan, -600, -180); // Boo Wolverines!
// Disable the colors found in the SVG file
ohio.disableStyle();
// Set our own coloring
fill(153, 0, 0);
noStroke();
// Draw a single state
shape(ohio, -600, -180); // Go Buckeyes!
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

@@ -1,47 +0,0 @@
import processing.core.*;
import processing.xml.*;
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 LoadDisplayShape extends PApplet {
/**
* Load and Display a Shape.
* Illustration by George Brower.
*
* The loadShape() command is used to read simple SVG (Scalable Vector Graphics)
* files into a Processing sketch. This library was specifically tested under
* SVG files created from Adobe Illustrator. For now, we can't guarantee that
* it'll work for SVGs created with anything else.
*/
PShape bot;
public void setup() {
size(640, 360);
smooth();
// The file "bot1.svg" must be in the data folder
// of the current sketch to load successfully
bot = loadShape("bot1.svg");
noLoop(); // Only run draw() once
}
public void draw(){
background(102);
shape(bot, 110, 90, 100, 100); // Draw at coordinate (10, 10) at size 100 x 100
shape(bot, 280, 40); // Draw at coordinate (70, 60) at the default size
}
static public void main(String args[]) {
PApplet.main(new String[] { "LoadDisplayShape" });
}
}
@@ -1,26 +0,0 @@
/**
* Load and Display a Shape.
* Illustration by George Brower.
*
* The loadShape() command is used to read simple SVG (Scalable Vector Graphics)
* files into a Processing sketch. This library was specifically tested under
* SVG files created from Adobe Illustrator. For now, we can't guarantee that
* it'll work for SVGs created with anything else.
*/
PShape bot;
void setup() {
size(640, 360);
smooth();
// The file "bot1.svg" must be in the data folder
// of the current sketch to load successfully
bot = loadShape("bot1.svg");
noLoop(); // Only run draw() once
}
void draw(){
background(102);
shape(bot, 110, 90, 100, 100); // Draw at coordinate (10, 10) at size 100 x 100
shape(bot, 280, 40); // Draw at coordinate (70, 60) at the default size
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

@@ -1,47 +0,0 @@
import processing.core.*;
import processing.xml.*;
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 ScaleShape extends PApplet {
/**
* Scale Shape.
* Illustration by George Brower.
*
* Move the mouse left and right to zoom the SVG file.
* This shows how, unlike an imported image, the lines
* remain smooth at any size.
*/
PShape bot;
public void setup() {
size(640, 360);
smooth();
// The file "bot1.svg" must be in the data folder
// of the current sketch to load successfully
bot = loadShape("bot1.svg");
}
public void draw() {
background(102);
translate(width/2, height/2);
float zoom = map(mouseX, 0, width, 0.1f, 4.5f);
scale(zoom);
shape(bot, -140, -140);
}
static public void main(String args[]) {
PApplet.main(new String[] { "ScaleShape" });
}
}
@@ -1,26 +0,0 @@
/**
* Scale Shape.
* Illustration by George Brower.
*
* Move the mouse left and right to zoom the SVG file.
* This shows how, unlike an imported image, the lines
* remain smooth at any size.
*/
PShape bot;
void setup() {
size(640, 360);
smooth();
// The file "bot1.svg" must be in the data folder
// of the current sketch to load successfully
bot = loadShape("bot1.svg");
}
void draw() {
background(102);
translate(width/2, height/2);
float zoom = map(mouseX, 0, width, 0.1, 4.5);
scale(zoom);
shape(bot, -140, -140);
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB