50 likes | 352 Views
Graphics. The computer screen is made up of pixels. The lower left corner of the screen is the point (0,0). The first number is the x co-ordinate. The second, the y coordinate. . A (0,0). Graphics. The top left corner of the screen has coordinates (0,maxy)
E N D
Graphics • The computer screen is made up of pixels. • The lower left corner of the screen is the point (0,0). The first number is the x co-ordinate. The second, the y coordinate. A (0,0)
Graphics • The top left corner of the screen has coordinates (0,maxy) • The top right corner of the screen has coordinates (maxx,maxy) • The bottom right corner of the screen has coordinates (maxx,0)
Graphics (maxx,maxy) C B(0,maxy) A(0,0) (maxx,0)D
Graphics (maxx div 4,maxy) (maxx * 3 div 4,maxy) (maxx div 2,maxy div 2) (maxx div 4,0) (maxx *3 div 4,0)
Graphics Draw.FillBox(x1,y1,x2,y2,colour) y-axis (x2,y2) (x1,y1) x-axis