draw(winvertices [ use polygon object to draw the triangle triangle polygon(verticestriangle setfill('gray'triangle setoutline('cyan'triangle setwidth( width of boundary line triangle draw(winmessage settext('click anywhere to quit'change text message win getmouse(win close(main(let us look at individual parts the lines before the new linewin setbackground('yellow'are standard starting lines (except for the specific values chosen for the widthheightand titlethe background color is property of the whole graphics window that you can set message text(point(win getwidth()/ )'click on three points'message settextcolor('red'message setstyle('italic'message setsize( message draw(winagain text object is created this is the prompt for user action these lines illustrate most of the ways the appearance of text object may be modifiedwith results like in most word processors the reference pages for graphics py give the details this reference is introduced shortly in the documentation for graphics py (page after the promptthe program looks for responseget and draw three vertices of triangle win getmouse( draw(winp win getmouse( draw(winp win getmouse( draw(winthe win getmouse(method (with no parameters)waits for you to click the mouse inside win then the point where the mouse was clicked is returned in this code three mouse clicks are waited forremembered in variables and and the points are drawn next we introduce very versatile type of graphical objecta polygonwhich may have any number of vertices specified in list as its parameter we see that the methods setfill and setoutline that we used earlier on circleand the setwidth method we used for linealso apply to polygon(and also to other graphics objectsvertices [ triangle polygon(verticestriangle setfill('gray'triangle setoutline('cyan' objects and methods