Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import simple_draw as sd
- x = 0
- x1 = x + 100
- y = 0
- y1 = y + 50
- sd.resolution = (600, 600)
- left_bottom = sd.get_point(0, y)
- right_top = sd.get_point(100, y1)
- #def recrangle(left_point, right_point, color, width):
- # for _ in range(3):
- # sd.rectangle(left_bottom=left_bottom, right_top=right_top, color=sd.COLOR_RED, width=1)
- #for _ in range(3):
- # sd.rectangle(left_bottom=left_bottom, right_top=right_top, color=sd.COLOR_RED, width=1)
- for y in range(50, 600, 50):
- sd.rectangle(left_bottom=sd.get_point(0, y), right_top=sd.get_point(100, y1), color=sd.COLOR_RED, width=1)
- for x in range(0, 901, 100):
- sd.rectangle(left_bottom=sd.get_point(x, 0), right_top=sd.get_point(x1, 50), color=sd.COLOR_RED, width=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement