hackathon-dev #1
|
@ -59,6 +59,10 @@ 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
|
||||||
|
if down:
|
||||||
|
current_x = origin_x
|
||||||
|
current_y = origin_y
|
||||||
|
else:
|
||||||
hdc.text_color = color_list[current_color]
|
hdc.text_color = color_list[current_color]
|
||||||
hdc.move_to(current_x, current_y)
|
hdc.move_to(current_x, current_y)
|
||||||
hdc.line_to(x, y)
|
hdc.line_to(x, y)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user