From 0211e2df20201415c835f80a59aa88ec8e25e1c5 Mon Sep 17 00:00:00 2001 From: Valerie Date: Sat, 23 Mar 2024 11:48:09 -0400 Subject: [PATCH] adjust lesbian flag colors --- basic.c | 16 ++++++++-------- draw.c | 2 +- draw.h | 2 +- full.c | 18 +++++++++--------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/basic.c b/basic.c index f25db0c..e10c9c5 100644 --- a/basic.c +++ b/basic.c @@ -5,7 +5,7 @@ #include "draw.h" void rainbow_8() { - color colors [] = { + const color colors [] = { RED, L_RED, L_YELLOW, @@ -17,7 +17,7 @@ void rainbow_8() { } void aroace_8() { - color colors [] = { + const color colors [] = { YELLOW, L_YELLOW, WHITE, @@ -28,7 +28,7 @@ void aroace_8() { } void bisexual_8() { - color colors [] = { + const color colors [] = { RED, RED, MAGENTA, @@ -39,7 +39,7 @@ void bisexual_8() { } void gay_8() { - color colors [] = { + const color colors [] = { CYAN, L_CYAN, WHITE, @@ -50,7 +50,7 @@ void gay_8() { } void lesbian_8() { - color colors [] = { + const color colors [] = { RED, L_RED, WHITE, @@ -61,7 +61,7 @@ void lesbian_8() { } void nonbinary_8() { - color colors [] = { + const color colors [] = { L_YELLOW, WHITE, MAGENTA, @@ -71,7 +71,7 @@ void nonbinary_8() { } void pansexual_8() { - color colors [] = { + const color colors [] = { MAGENTA, MAGENTA, L_YELLOW, @@ -83,7 +83,7 @@ void pansexual_8() { } void transgender_8() { - color colors [] = { + const color colors [] = { L_CYAN, L_MAGENTA, WHITE, diff --git a/draw.c b/draw.c index da7f1e2..3d457ee 100644 --- a/draw.c +++ b/draw.c @@ -2,7 +2,7 @@ #include -void draw(unsigned short int len, color colors []) { +void draw(const unsigned short int len, const color colors []) { for(int i = 0; i < len; i++) { printf(ANSI "%dm" STRIPE, colors[i]); } diff --git a/draw.h b/draw.h index 00cc7d4..df21761 100644 --- a/draw.h +++ b/draw.h @@ -6,5 +6,5 @@ typedef unsigned short int color; -void draw(unsigned short int len, color colors[]); +void draw(const unsigned short int len, const color colors[]); diff --git a/full.c b/full.c index 59ab431..7bab152 100644 --- a/full.c +++ b/full.c @@ -5,7 +5,7 @@ #include "draw.h" void rainbow_256() { - color colors [] = { + const color colors [] = { 196, // red 208, // orange 220, // yellow @@ -17,7 +17,7 @@ void rainbow_256() { } void aroace_256() { - color colors [] = { + const color colors [] = { 172, // orange 184, // yellow 255, // white @@ -28,7 +28,7 @@ void aroace_256() { } void bisexual_256() { - color colors [] = { + const color colors [] = { 161, // magenta 161, 91, // purple @@ -39,7 +39,7 @@ void bisexual_256() { } void gay_256() { - color colors [] = { + const color colors [] = { 29, 49, // greens 123, @@ -52,18 +52,18 @@ void gay_256() { } void lesbian_256() { - color colors [] = { + const color colors [] = { 202, // orange 209, // tangerine 255, // white - 134, // pink + 205, // pink 161 // magenta }; draw(5, colors); } void nonbinary_256() { - color colors [] = { + const color colors [] = { 226, // yellow 255, // white 134, // purple @@ -73,7 +73,7 @@ void nonbinary_256() { } void pansexual_256() { - color colors [] = { + const color colors [] = { 161, 161, // magenta 220, 220, // yellow 45, 45 // cyan @@ -82,7 +82,7 @@ void pansexual_256() { } void transgender_256() { - color colors [] = { + const color colors [] = { 45, // blue 213, // pink 255, // white