hackathon-dev #1

Merged
amy merged 101 commits from hackathon-dev into develop 2019-12-12 13:56:11 -07:00
Showing only changes of commit 85e89eae4c - Show all commits

View File

@ -59,11 +59,15 @@ current_y = 0
def freehand_draw(x, y, down, up): def freehand_draw(x, y, down, up):
global current_x, current_y global current_x, current_y
hdc.text_color = color_list[current_color] if down:
hdc.move_to(current_x, current_y) current_x = origin_x
hdc.line_to(x, y) current_y = origin_y
current_x = x else:
current_y = y hdc.text_color = color_list[current_color]
hdc.move_to(current_x, current_y)
hdc.line_to(x, y)
current_x = x
current_y = y
def rubberband_rectangle(x, y, down, up): def rubberband_rectangle(x, y, down, up):
global current_x, current_y global current_x, current_y