diff --git a/src/base.h b/src/base.h index ec0313f..dc54179 100644 --- a/src/base.h +++ b/src/base.h @@ -50,6 +50,8 @@ typedef double f64; #define MUTATION_CHANCE 5000 #define MUTATION_OFFSET 1 +#define DRAW_PROGRAM_OUTLINE 1 + #endif /* Copyright (C) 2026 Aryadev Chavali diff --git a/src/simulation.c b/src/simulation.c index e81d554..36cd9ce 100644 --- a/src/simulation.c +++ b/src/simulation.c @@ -96,11 +96,13 @@ void simulation_draw(simulation_t *sim) (Vector2){CELL_WIDTH, CELL_HEIGHT}, color); } +#if DRAW_PROGRAM_OUTLINE DrawRectangleLinesEx((Rectangle){.x = s_x * CELL_WIDTH, .y = s_y * CELL_HEIGHT, .width = CELL_WIDTH * PROGRAM_ROW_SIZE, .height = CELL_HEIGHT * PROGRAM_ROW_SIZE}, - 1, DARKGRAY); + CELL_WIDTH / PROGRAM_ROW_SIZE, DARKGRAY); +#endif } }