Ask yourself, how many lines will those loops draw?
The current answer is 100.
You are drawing the lines you want but are also drawing 90 other lines that overlap the ones you want.
You want something like this probably?
The current answer is 100.
You are drawing the lines you want but are also drawing 90 other lines that overlap the ones you want.
You want something like this probably?
x_offset = 100 for y_offset in range(0, 100, 10): start, end = [0, 160+y_offset], [x_offset-y_offset, 160+y_offset] pg.draw.line(self.screen, pg.Color("red"), start, end, 1)