Lab Task 2.docx - Ngoc Phuong Van Nguyen 101874442 Week 2...

This preview shows page 1 - 7 out of 7 pages.

Ngoc Phuong Van Nguyen 101874442 Week 2 Task2.1 Source code: #include <stdio.h> #include "SwinGame.h" int main() { open_graphics_window("Simple Shape", 800, 600); clear_screen(ColorLightSkyBlue); fill_circle(ColorLightPink,400,300,100); fill_triangle(ColorBlack,360,250,340,280,380,280); fill_triangle(ColorBlack,440,250,420,280,460,280); fill_circle(ColorRed,400,300,15); fill_ellipse(ColorLightYellow, 375,350,50,20); fill_triangle(ColorLightGray,400,50,320,230,480,230); fill_circle(ColorBlack,390,100,7); fill_circle(ColorBlack,430,145,7); fill_circle(ColorBlack,365,150,7); fill_circle(ColorBlack,395,150,7); fill_circle(ColorBlack,380,185,7); fill_circle(ColorBlack,445,195,7); fill_circle(ColorBlack,350,200,7); fill_circle(ColorBlack,440,215,7); fill_circle(ColorBlack,397,220,7);
fill_circle(ColorRed,398,120,7); fill_circle(ColorRed,375,125,7); fill_circle(ColorRed,420,130,7); fill_circle(ColorRed,360,170,7); fill_circle(ColorRed,392,173,7); fill_circle(ColorRed,420,180,7); fill_circle(ColorRed,370,200,7); fill_circle(ColorRed,400,200,7); fill_circle(ColorRed,444,168,7); refresh_screen(60); delay(15000); return 0;

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture