Question: Do this once at the interactive prompt to install Pillow. Do not include this code in your program. import pip > > pip.main ( [

Do this once at the interactive prompt to install Pillow. Do not include this code in your program.
import pip
>> pip.main(["install", "pillow"])
In grid. py, write a function draw_grid that takes three arguments: an image size (which will be both the width and height of the image we create), a grid spacing (the number of picels between grid lines), and an output filename. It should create a new Image and draw grid lines. You should draw horizontal grid lines in green, and vertical lines in red, so making this call:
draw_grid(200,20, "out1.png")
... should produce this image: 1
And this function call:
draw_grid(100,15, "out2.png")
... should produce this image:
 Do this once at the interactive prompt to install Pillow. Do

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!