Skip to content

Commit 776824e

Browse files
committed
Cleaning examples for Beta launch
1 parent 6cf417c commit 776824e

15 files changed

Lines changed: 29 additions & 154 deletions

File tree

java/examples/Basics/Arrays/Array/Array.pde

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,25 @@ void setup() {
2525

2626
void draw() {
2727

28+
int y1 = 0;
29+
int y2 = height/3;
2830
for (int i = 0; i < width; i++) {
2931
stroke(coswave[i]*255);
30-
line(i, 0, i, height/3);
32+
line(i, y1, i, y2);
3133
}
3234

35+
y1 = y2;
36+
y2 = y1 + y1;
3337
for (int i = 0; i < width; i++) {
3438
stroke(coswave[i]*255 / 4);
35-
line(i, height/3, i, height/3*2);
39+
line(i, y1, i, y2);
3640
}
37-
41+
42+
y1 = y2;
43+
y2 = height;
3844
for (int i = 0; i < width; i++) {
3945
stroke(255 - coswave[i]*255);
40-
line(i, height/3*2, i, height);
46+
line(i, y1, i, y2);
4147
}
4248

4349
}

java/examples/Basics/Arrays/Array2D/Array2D.pde

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ void setup() {
2727

2828
void draw() {
2929
background(0);
30+
// This embedded loop skips over values in the arrays based on
31+
// the spacer variable, so there are more values in the array
32+
// than are drawn here. Change the value of the spacer variable
33+
// to change the density of the points
3034
for (int y = 0; y < height; y += spacer) {
3135
for (int x = 0; x < width; x += spacer) {
3236
stroke(distances[x][y]);

java/examples/Basics/Arrays/ArrayObjects/ArrayObjects.pde

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Array Objects.
33
*
44
* Demonstrates the syntax for creating an array of custom objects.
5-
*
6-
* Updated 26 February 2010.
75
*/
86

97
int unit = 40;
@@ -12,7 +10,6 @@ Module[] mods;
1210

1311
void setup() {
1412
size(640, 360);
15-
background(176);
1613
noStroke();
1714
int wideCount = width / unit;
1815
int highCount = height / unit;

java/examples/Basics/Shape/LoadDisplayShape/LoadDisplayShape.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ void setup() {
2222

2323
void draw(){
2424
background(102);
25-
shape(bot, 110, 90, 100, 100); // Draw at coordinate (10, 10) at size 100 x 100
26-
shape(bot, 280, 40); // Draw at coordinate (70, 60) at the default size
25+
shape(bot, 110, 90, 100, 100); // Draw at coordinate (110, 90) at size 100 x 100
26+
shape(bot, 280, 40); // Draw at coordinate (280, 40) at the default size
2727
}

java/examples/Topics/File IO/LoadingXMLObjects/Bubble.pde renamed to java/examples/Topics/Advanced Data/LoadingXMLObjects/Bubble.pde

File renamed without changes.

java/examples/Topics/File IO/LoadingXMLObjects/LoadingXMLObjects.pde renamed to java/examples/Topics/Advanced Data/LoadingXMLObjects/LoadingXMLObjects.pde

File renamed without changes.

java/examples/Topics/File IO/LoadingXMLObjects/data/bubbles.xml renamed to java/examples/Topics/Advanced Data/LoadingXMLObjects/data/bubbles.xml

File renamed without changes.

java/examples/Topics/File IO/LoadingXMLObjects/sketch.properties renamed to java/examples/Topics/Advanced Data/LoadingXMLObjects/sketch.properties

File renamed without changes.

java/examples/Topics/File IO/XMLYahooWeather/XMLYahooWeather.pde renamed to java/examples/Topics/Advanced Data/XMLYahooWeather/XMLYahooWeather.pde

File renamed without changes.

java/examples/Topics/Create Shapes/SVGPShape/SVGPShape.pde

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)