updating lab9
This commit is contained in:
parent
b278fbd4c0
commit
ab556f299d
1 changed files with 1 additions and 1 deletions
2
lab9/1.c
2
lab9/1.c
|
@ -21,7 +21,7 @@ void draw_disks(FILE * file, int disks, int peg, int width, int y) {
|
||||||
int x = 70 + ((peg - 1) * 100);
|
int x = 70 + ((peg - 1) * 100);
|
||||||
fprintf(file, "<rect x=\"%d\" y=\"%d\" width=\"%d\" height=\"20\" "\
|
fprintf(file, "<rect x=\"%d\" y=\"%d\" width=\"%d\" height=\"20\" "\
|
||||||
"fill=\"%s\" stroke=\"black\" stroke-width=\"1\" />\r\n",
|
"fill=\"%s\" stroke=\"black\" stroke-width=\"1\" />\r\n",
|
||||||
x - width / 2 + 10, y, width, colors[random_color]);
|
x - width / 2 + 8, y, width, colors[random_color]);
|
||||||
draw_disks(file, disks - 1, peg, width - width / 4, y - 21);
|
draw_disks(file, disks - 1, peg, width - width / 4, y - 21);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue