def gradient(): gc = GraphicsContext((500, 500)) gc.scale_ctm(1.25, 1.25) draw(gc) file_path = tempfile.mktemp(suffix='.png') gc.save(file_path, file_format='png') return file_path
def main(): gc = GraphicsContext((500, 500)) gc.scale_ctm(1.25, 1.25) draw(gc) gc.save(splitext(__file__)[0] + '.png', file_format='png')
def main(): gc = GraphicsContext((500, 500)) gc.scale_ctm(1.25, 1.25) draw(gc) gc.save(splitext(__file__)[0]+'.png', file_format='png')