diff --git a/C/draw.cpp b/C/draw.cpp new file mode 100644 index 0000000..d2f7cab --- /dev/null +++ b/C/draw.cpp @@ -0,0 +1,36 @@ +void drawRects(int step){ + + SDL_RenderClear(renderer); + + int cols = matrix[1]; + int rows = matrix[0]; + int colWidth = ((600-5)/cols)-5; + int rowHeight = ((300-5)/rows)-5; + + for(int i=0; i