Skip to content

Commit

Permalink
Merge branch 'master' of github.com:sherbondy/Mondrian-Automaton
Browse files Browse the repository at this point in the history
  • Loading branch information
sherbondy committed Dec 15, 2010
2 parents 040f54e + a38f01f commit 52a0d81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions boogie.pde
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ void illus() {
// this box in
int max_si = max_s;

if (max_s > 6) {
if (max_s > 10) {
// don't want ridiculously wide boxes
max_s = int(max_s/2);
}

// modifying max_s to change with the thickness the user prefers
max_s = int((complexity*max_s)/2);
max_s = int((thickness*max_s)/2);

int num_squares = int(random(2,max_s));
int free_s = max_si - num_squares;
Expand Down Expand Up @@ -134,13 +134,13 @@ void illus() {
// and max_si refers to the total available white space
int max_si = max_s;

if (max_s > 5) {
if (max_s > 8) {
// don't want ridiculously wide boxes
max_s = int(max_s/2);
}

// modifying max_s to change with the thickness the user prefers
max_s = int((complexity*max_s)/2);
max_s = int((thickness*max_s)/2);

int num_squares = int(random(2,max_s));
int free_s = max_si - num_squares;
Expand Down

0 comments on commit 52a0d81

Please sign in to comment.