######################################### # File: Programs/Xiang/screen.py """ Draws 500 red pixels on the screen Screen resolution: Winx = 800 x winy = 600 ( low ) Winx = 1280 x winy = 800 ( high) """ from graphics import * winxMAX = 800 winyMAX = 600 def main(): win = GraphWin( "Pixel drawing", winxMAX, winyMAX ) x=100 for k in range(500): win.plot(x,x+ k,"red") x=200 for k in range(300): p=Point(x,x+ k) p.draw(win) raw_input("Press to quit.") win.close() main()