I am trying to make a grid over a picture and I have managed that much using the function:
def grid(pic):
width = getWidth(pic)
height = getHeight(pic)
size = 10
for x in range(0, width, size):
addLine(pic, x+size, 0, x+size, height)
for y in range(0, height, size):
addLine(pic, 0, y+size, width, y+size)
Now I need to make a function called grid2(pic,size). This function is supposed to take the code from the previous function (grid(pic)) and make it so the grid lines are now 20 pixels apart. Im not great with parameters so I don't fully understand how to do this. I was wondering if someone could help me thanks a ton.