simulation: only draw grid outline if DRAW_PROGRAM_OUTLINE is 1
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user