casea white imageand store the image object in im we pass the image object to the imagedraw draw(function to receive an imagedraw object this object has several methods for drawing shapes and text onto an image object store the imagedraw object in variable like draw so you can use it easily in the following example drawing shapes the following imagedraw methods draw various kinds of shapes on the image the fill and outline parameters for these methods are optional and will default to white if left unspecified points the point(xyfillmethod draws individual pixels the xy argument represents list of the points you want to draw the list can be list of xand -coordinate tuplessuch as [(xy)(xy)]or list of xand -coordinates without tuplessuch as [ the fill argument is the color of the points and is either an rgba tuple or string of color namesuch as 'redthe fill argument is optional lines the line(xyfillwidthmethod draws line or series of lines xy is either list of tuplessuch as [(xy)(xy)]or list of integerssuch as [ each point is one of the connecting points on the lines you're drawing the optional fill argument is the color of the linesas an rgba tuple or color name the optional width argument is the width of the lines and defaults to if left unspecified rectangles the rectangle(xyfilloutlinemethod draws rectangle the xy argument is box tuple of the form (lefttoprightbottomthe left and top values specify the xand -coordinates of the upper-left corner of the rectanglewhile right and bottom specify the lower-right corner the optional fill argument is the color that will fill the inside of the rectangle the optional outline argument is the color of the rectangle' outline ellipses the ellipse(xyfilloutlinemethod draws an ellipse if the width and height of the ellipse are identicalthis method will draw circle the xy argument is box tuple (lefttoprightbottomthat represents box that precisely contains the ellipse the optional fill argument is the color of the inside of the ellipseand the optional outline argument is the color of the ellipse' outline