The media module. This contains global convenience functions for manipulating PyGraphics objects, and imports all the supporting modules fully.
Pictures currently support the following formats: JPEG, BMP, GIF, TIFF, IM, MSP, PNG, PCX, and PPM.
Sounds support is self-contained in sound_media.py, and must be imported separately.
Draw a line of Color col from (x1, y1) to (x2, y2) on Picture pic.
Draw an empty oval of Color col, width w, and height h on Picture pic. The upper left corner of the oval is at (x, y).
Draw a filled oval of Color col, width w, and height h on Picture pic. The upper left corner of the oval is at (x, y).
Draw an empty polygon of Color col with corners for every vertex in list point_list on Picture pic.
Note: point_list is a list containing vertices xy coordinates (ex. [x1,y1,x2,y2,x3,y3]) It should contain at least three coordinate pairs.
Draw an empty polygon of Color col with corners for every vertex in list point_list on Picture pic.
Note: point_list is a list containing vertices xy coordinates (ex. [x1,y1,x2,y2,x3,y3]) It should contain at least three coordinate pairs.
Draw an empty rectangle of Color col, width w, and height h on Picture pic. The upper left corner of the rectangle is at (x, y).
Draw a filled rectangle of Color col, width w, and height h on Picture pic. The upper left corner of the rectangle is at (x, y).
Draw str s in Color col on Picture pic starting at (x, y).
Prompt user to pick a color. Return a RGB Color object.
Prompt user to pick a file. Return the path to that file.
Prompt user to pick a folder. Return the path to that folder.
Prompt user to pick a directory and filename. Return the path to the new file.