Skip to content

Commit 3b4f7f6

Browse files
committed
moved test exampels to Demos|QA
1 parent 2bb8453 commit 3b4f7f6

File tree

3 files changed

+32
-6
lines changed

3 files changed

+32
-6
lines changed

examples/Demos/Tests/RotatingBox/RotatingBox.pde renamed to examples/Demos/QA/Box/Box.pde

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ float angle = 0;
22

33
void setup() {
44
fullScreen(P3D);
5-
//size(800, 1280, P2D);
6-
//size(640, 360, P3D);
7-
//orientation(PORTRAIT);
8-
//orientation(LANDSCAPE);
95
}
106

117
void draw() {
@@ -14,6 +10,6 @@ void draw() {
1410
translate(mouseX, mouseY);
1511
rotateX(angle);
1612
rotateY(angle);
17-
box(width * 0.5);
13+
box(100);
1814
angle += 0.01;
1915
}

examples/Demos/QA/Hue/Hue.pde

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Hue.
3+
*
4+
* Hue is the color reflected from or transmitted through an object
5+
* and is typically referred to as the name of the color (red, blue, yellow, etc.)
6+
* Move the cursor vertically over each bar to alter its hue.
7+
*/
8+
9+
int barWidth = 5;
10+
int[] hue;
11+
12+
void setup()
13+
{
14+
fullScreen(P2D);
15+
colorMode(HSB, 360, height, height);
16+
hue = new int[width/barWidth];
17+
noStroke();
18+
}
19+
20+
void draw()
21+
{
22+
int j = 0;
23+
for (int i=0; i<=(width-barWidth); i+=barWidth) {
24+
if ((mouseX > i) && (mouseX < i+barWidth)) {
25+
hue[j] = mouseY;
26+
}
27+
fill(hue[j], height/1.2, height/1.2);
28+
rect(i, 0, barWidth, height);
29+
j++;
30+
}
31+
}

examples/Demos/Tests/RotatingBox/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)