October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following code block defines points and associated lines and curves to be drawn to form the overall picture:
verts1 = [(-1.5, 0.), # left, bottom (0., 1.), # left, top (1.5, 0.), # right, top (0., -1.0), # right, bottom (-1.5, 0.)] # ignored
codes1 = [Path.MOVETO, # Go to first point specified in vert1 Path.LINETO, # Draw a line from first point to second point Path.LINETO, # Draw another line from current point to next point Path.LINETO, # Draw another line from current point to next point Path.CLOSEPOLY] # Close the loop
Read now
Unlock full access