From ed0e12c7d64fbad2bb7a3291f58bc393b95a4919 Mon Sep 17 00:00:00 2001 From: leca Date: Wed, 28 Aug 2024 21:30:18 +0300 Subject: [PATCH] fix orange color & added makefile --- Makefile | 4 ++++ skins.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d4a7f3a --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +squared: + g++ squared.cpp -lsfml-window -lsfml-system -lsfml-graphics -o squared +skins: + g++ skins.cpp -lsfml-window -lsfml-system -lsfml-graphics -o skins diff --git a/skins.cpp b/skins.cpp index 31e3bb1..6280831 100644 --- a/skins.cpp +++ b/skins.cpp @@ -173,7 +173,7 @@ void printBoard(RenderWindow* win, vector>* board, int width, int he if((*board)[i][j] % 7 == 0) { rectangle->setFillColor(Color::Red); } else if ((*board)[i][j]% 7 % 6 == 0) { - rectangle->setFillColor(Color::Orange); + rectangle->setFillColor(Color(255, 165, 0, 255)); } else if ((*board)[i][j] % 7 % 5 == 0) { rectangle->setFillColor(Color::Yellow); } else if ((*board)[i][j] % 7 % 4 == 0) {