1
1
// simple sketch that creates a sort of scanner
2
2
3
- // These are unused but got to have if you want to see the
3
+ // These are unused but got to have if you want to see the
4
4
// simple code where it comes from in the draw
5
5
// int x = 0;
6
6
int step = 100 ; // step is just used to for the circles in the background
@@ -14,13 +14,13 @@ ScannPoint another_scanner;
14
14
ArrayList < ScannPoint > scanns;
15
15
16
16
void setup () {
17
-
18
- size (800 , 800 ,P2D );
17
+
18
+ size (800 , 800 , P2D );
19
19
20
20
colorMode (HSB , 360 , 100 , 100 ); // because HSB is cooler
21
21
scanns = new ArrayList<ScannPoint > (); // init the list
22
22
23
-
23
+
24
24
// ScannPoint(float _radius, color _c, float _w, float _amount, float _x)
25
25
// radius is the radius of the orbit
26
26
// color is the color of the ellipse
@@ -30,33 +30,21 @@ void setup() {
30
30
31
31
scanner = new ScannPoint (300 , color (260 , 90 , 90 ), 5 , 100 , 90 );
32
32
another_scanner = new ScannPoint (305 , color (360 , 90 , 90 ), 5 , 100 , 90 );
33
-
33
+
34
34
// fill the list with new scan points
35
- for (int i = 100 ; i < 300 ; i+= 5 ){
36
- scanns. add(new ScannPoint (i, color (160 , 90 , 90 ), 5 , random (10 ,100 ), random (360 )));
35
+ for (int i = 100 ; i < 300 ; i+= 5 ) {
36
+ scanns. add(new ScannPoint (i, color (160 , 90 , 90 ), 5 , random (10 , 100 ), random (360 )));
37
37
}
38
+ smooth (2 );
38
39
}
39
40
void draw () {
40
- smooth (2 );
41
41
42
42
bg_and_ranges(); // clear the bg and draw the circles
43
- for (int i = 0 ; i < scanns. size();i++ ){
43
+ for (int i = 0 ; i < scanns. size(); i++ ) {
44
44
scanns. get(i). run();
45
-
46
45
}
47
- scanner. run(); // run one scanner
46
+ scanner. run(); // run one scanner
48
47
another_scanner. run(); // run another
49
-
50
-
51
- // this is the origianl code where it came from
52
- // off+=.01;
53
- // x++;
54
- // pushMatrix();
55
- // translate(width/2, height/2);// bring zero point to the center
56
- // float n = noise(off) * 100;
57
- // float px = sin(radians(x%360))*(radius + n);
58
- // float py = cos(radians(x%360))*(radius + n);
59
- // fill(162, 90, 90);
60
- // ellipse (px, py, 5, 5 );
61
- // popMatrix();
48
+ // saveFrame("seq/out-####.png");
49
+ // if(frameCount == 250) exit();
62
50
}
0 commit comments