Skip to content

Commit

Permalink
drawing boards repaired
Browse files Browse the repository at this point in the history
  • Loading branch information
SomiLotr committed May 25, 2023
1 parent 7f16424 commit 2da534b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/drawing.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ int SPy = 30 - t;
// BOARD 1
void drawBoard1(int edge){
int background[6][6] = {{1,1,1,0,0,0},{1,1,1,1,1,1},{0,0,1,1,1,1},{0,0,1,1,1,0},{0,0,0,0,0,0},{0,0,0,0,0,0}};
drawShapeLARGE(background, SPx, SPy);
drawShapeLARGE(background, SPx + t, SPy + t);
for (int i = SPx; i < SPx + 3*edge + 3* t; i++){ // 1-
color_pixel_black_hor(i, SPy);
}
Expand Down Expand Up @@ -300,13 +300,13 @@ void drawBoard4(int edge){
for (int i = SPy + 2 * edge; i <SPy + 3*edge + t; i++){ // 3| USED
color_pixel_black_ver(SPx + 3*edge + 2 * t, i);
}
for (int i = SPy + 4 * edge + t; i < SPy + 5 * edge + 3*t; i++){
for (int i = SPy + 4 * edge + 2*t; i < SPy + 5 * edge + 3*t; i++){
color_pixel_black_ver(SPx + 2 * edge, i);
}
for ( int i = SPx + 2 * edge; i < SPx + 5 * edge + 3* t; i++){
color_pixel_black_hor(i, SPy + 5 * edge + 2*t);
}
for (int i = SPx + 3*edge + t; i < SPx + 4 * edge + t; i++){
for (int i = SPx + 3*edge +2* t; i < SPx + 4 * edge + t; i++){
color_pixel_black_hor(i,SPy + 3*edge);
}
for (int i = SPy + 2 * edge; i <SPy + 3*edge; i++){
Expand Down

0 comments on commit 2da534b

Please sign in to comment.