fix orange color & added makefile
This commit is contained in:
parent
d7f90ccbe6
commit
ed0e12c7d6
|
@ -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
|
|
@ -173,7 +173,7 @@ void printBoard(RenderWindow* win, vector<vector<int>>* board, int width, int he
|
||||||
if((*board)[i][j] % 7 == 0) {
|
if((*board)[i][j] % 7 == 0) {
|
||||||
rectangle->setFillColor(Color::Red);
|
rectangle->setFillColor(Color::Red);
|
||||||
} else if ((*board)[i][j]% 7 % 6 == 0) {
|
} 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) {
|
} else if ((*board)[i][j] % 7 % 5 == 0) {
|
||||||
rectangle->setFillColor(Color::Yellow);
|
rectangle->setFillColor(Color::Yellow);
|
||||||
} else if ((*board)[i][j] % 7 % 4 == 0) {
|
} else if ((*board)[i][j] % 7 % 4 == 0) {
|
||||||
|
|
Loading…
Reference in New Issue