@@ -10,11 +10,12 @@ int column_index, row_index;
10
10
float grid_angle, x_step, y_step;
11
11
float position_noise;
12
12
13
- int _octave = round (random (8 , 24 ));
14
- float step_length = random (1 , 4 );
13
+ float step_length = 1 ;
14
+
15
+ int _octave = round (random (4 , 6 ));
16
+ float falloff = random (0.75 , 0.8 );
15
17
int num_steps = round (random (100 , 200 ));
16
- float falloff = random (0.5 , 0.9 );
17
- int num_lines = 100 ;
18
+ int num_lines = round (random (400 , 800 ));
18
19
19
20
void setup () {
20
21
// width, height in pixels
@@ -25,14 +26,16 @@ void setup() {
25
26
stroke (0 , 0 , 0 );
26
27
noFill ();
27
28
28
- println (num_steps);
29
- println (falloff);
29
+ println (" octave: " + _octave);
30
+ println (" falloff: " + falloff);
31
+ println (" num_steps: " + num_steps);
32
+ println (" num_lines: " + num_lines);
30
33
31
34
// make grid larger than paper so lines can flow off
32
- left_x = int (width * - 2 );
33
- right_x = int (width * 2 );
34
- top_y = int (height * - 2 );
35
- bottom_y = int (height * 2 );
35
+ left_x = int (width * - 4 );
36
+ right_x = int (width * 4 );
37
+ top_y = int (height * - 4 );
38
+ bottom_y = int (height * 4 );
36
39
resolution = int (width * 0.01 );
37
40
num_columns = (right_x - left_x) / resolution;
38
41
num_rows = (bottom_y - top_y) / resolution;
@@ -80,7 +83,7 @@ void keyPressed() {
80
83
num_steps = num_steps + 10 ;
81
84
} else if (keyCode == DOWN ) {
82
85
num_steps = num_steps - 10 ;
83
- }
86
+ }
84
87
}
85
88
}
86
89
0 commit comments