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 a14acdb0ed - Show all commits

View File

@ -5,14 +5,18 @@ hdc = upiwin.DevCtxt(type='screen')
hdc.text_color = 0xFFFFFF # white hdc.text_color = 0xFFFFFF # white
hdc.rectangle(100, 100, 199, 199) hdc.rectangle(100, 100, 199, 199)
#clip = hdc.get_clip_rect() clip = hdc.get_clip_rect()
#hdc.set_clip_rect(100, 100, 200, 200) hdc.set_clip_rect(100, 100, 200, 200)
hdc.text_color = 0xFF0000 # red hdc.text_color = 0x0000FF # red
hdc.move_to(0, 200) hdc.move_to(50, 199)
hdc.line_to(200, 0) hdc.line_to(199, 50)
#hdc.set_clip_rect(clip[0], clip[1], clip[2], clip[3]) hdc.text_color = 0x00FF00 # green
hdc.move_to(250, 199)
hdc.line_to(100, 50)
hdc.set_clip_rect(clip[0], clip[1], clip[2], clip[3])
msg = {} msg = {}
while upiwin.get_message(msg): while upiwin.get_message(msg):