Skip to content

Commit

Permalink
Better rows and cols settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aladaris committed Apr 5, 2019
1 parent b228f98 commit 8b5cc39
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sketch_sorttingAlgorithms/sketch_sorttingAlgorithms.pde
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
final int size = 7500;
final int rows = 60;
final int cols = 60;
final int size = rows * cols;

// SELECT A SORTING ALGORITHM
//BubleHandler h = new BubleHandler(size);
Expand All @@ -19,8 +21,8 @@ void setup(){
void draw(){

// DRAW SORTING ALGORITHM
translate(5, 10);
h.show(75, 100);
translate(25, 10);
h.show(rows, cols);
if (!h.step()){
println("Fin");
noLoop();
Expand Down

0 comments on commit 8b5cc39

Please sign in to comment.