From e5640d19f238747ba52d4277bb11ea77257dbab1 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 18 Mar 2026 17:29:46 +0000 Subject: [PATCH] simulation: adjust colours --- src/simulation.c | 12 ++++++------ src/simulation.h | 6 ++---- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/simulation.c b/src/simulation.c index da80ceb..aab93b5 100644 --- a/src/simulation.c +++ b/src/simulation.c @@ -15,12 +15,12 @@ static char *VALID_OPS = "<>{}-+.,[]"; static const Color possible_colors[] = { - ['<'] = {0x2f, 0x4f, 0x4f, 0xff}, ['>'] = {0x22, 0x8b, 0x22, 0xff}, - ['{'] = {0xb0, 0x30, 0x60, 0xff}, ['}'] = {0xff, 0x00, 0x00, 0xff}, - ['-'] = {0xff, 0xff, 0x00, 0xff}, ['+'] = {0x00, 0xff, 0x00, 0xff}, - ['.'] = {0x00, 0xff, 0xff, 0xff}, [','] = {0xa0, 0x20, 0xf0, 0xff}, - ['['] = {0x1e, 0x90, 0xff, 0xff}, [']'] = {0xff, 0xde, 0xad, 0xff}, - ['\0'] = {0x0, 0x0, 0x0, 0xff}, + ['<'] = {230, 25, 75, 255}, ['>'] = {60, 180, 75, 255}, + ['{'] = {255, 225, 25, 255}, ['}'] = {0, 130, 200, 255}, + ['-'] = {245, 130, 48, 255}, ['+'] = {145, 30, 180, 255}, + ['.'] = {70, 240, 240, 255}, [','] = {240, 50, 230, 255}, + ['['] = {210, 245, 60, 255}, [']'] = {250, 190, 212, 255}, + ['\0'] = {0, 0, 0, 255}, }; void simulation_mutate(simulation_t *sim) diff --git a/src/simulation.h b/src/simulation.h index 9ca2f1c..de1929d 100644 --- a/src/simulation.h +++ b/src/simulation.h @@ -23,14 +23,12 @@ void simulation_draw(simulation_t *sim); /* Copyright (C) 2026 Aryadev Chavali * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License Version 2 for * details. * You may distribute and modify this code under the terms of the GNU General - * Public License Version 2, which you should have received a copy of along - with + * Public License Version 2, which you should have received a copy of along with * this program. If not, please go to . */