שלום לכולם! אני לומד בכיתה ח' ונתנו לנו משימה לרשום את הספרה הראשונה של השעון.. כלומר צורה אחת שבנויה מ7 מלבנים ולאחר זה לצבוע את המלבן שאני צריך כדאי שתצא הצורה הנכונה. לדומא יש 7 מלבנים בצורה של ספרה אחת אז אני רוצה לעשות את הספרה 0 אז אני צריך לצבוע את כל המלבנים חוץ מהמלבן האמצעי ואז יוצאת הצורה 0. עכשיו אני הגעתי למצב שבניתי את כל המלבנים .. מה שאני לא מבין איך לצבוע את המלבנים .. אם מישהו יוכל לתת לי את הקוד לספרה הראשונה אני יהיה מאוד! או להסביר איך לצבוע אותם.. לתת הנחיות..
אני מצרף את מה שעשיתי עד עכשיו יש לי שמה בעיה עם הDRAWRECTANGEL אני יודה למי שיוכל להגיד לי מה הבעיה כי אני לא ממש מבין.. אני שנה ראשונה!
int x, y, height, width;
Color brushColor, penColor;



x = 1200;
y = 200;
height = 20;
width = 100;
brushColor = Color.White;
penColor = Color.Blue;

DrawRectAngle(x, y, height, width, brushColor, penColor);



x = 1180;
y = 200;
height = 100;
width = 20;
brushColor = Color.White;
penColor = Color.Blue;
DrawRectAngle(x, y, height, width, brushColor, penColor);



x = 1300;
y = 200;
height = 100;
width = 20;
brushColor = Color.White;
penColor = Color.Blue;
DrawRectAngle(x, y, height, width, brushColor, penColor);



x = 1300;
y = 300;
height = 100;
width = 20;
brushColor = Color.White;
penColor = Color.Blue;
DrawRectAngle(x, y, height, width, brushColor, penColor);




x = 1180;
y = 300;
height = 100;
width = 20;
brushColor = Color.White;
penColor = Color.Blue;
DrawRectAngle(x, y, height, width, brushColor, penColor);




x = 1200;
y = 285;
height = 20;
width = 100;
brushColor = Color.White;
penColor = Color.Blue;
DrawRectAngle(x, y, height, width, brushColor, penColor);



x = 1200;
y = 380;
height = 20;
width = 100;
brushColor = Color.White;
penColor = Color.Blue;
DrawRectAngle(x, y, height, width, brushColor, penColor);