mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
parent
79e9a5d0bc
commit
5580d482f9
@ -204,13 +204,14 @@ def main():
|
|||||||
# Update the GUI
|
# Update the GUI
|
||||||
graph = window[OUTPUT_GRAPH_NAME]
|
graph = window[OUTPUT_GRAPH_NAME]
|
||||||
graph.erase()
|
graph.erase()
|
||||||
|
|
||||||
if eye_info.info_type != InformationOrigin.FAILURE and not eye_info.blink:
|
if eye_info.info_type != InformationOrigin.FAILURE and not eye_info.blink:
|
||||||
graph.background_color = 'white'
|
graph.update(background_color = 'white')
|
||||||
graph.draw_circle((eye_info.x * -100, eye_info.y * -100), 25, fill_color='black',line_color='white')
|
graph.draw_circle((eye_info.x * -100, eye_info.y * -100), 25, fill_color='black',line_color='white')
|
||||||
elif eye_info.blink:
|
elif eye_info.blink:
|
||||||
graph.background_color = 'blue'
|
graph.update(background_color = 'blue')
|
||||||
elif eye_info.info_type == InformationOrigin.FAILURE:
|
elif eye_info.info_type == InformationOrigin.FAILURE:
|
||||||
graph.background_color = 'red'
|
graph.update(background_color = 'red')
|
||||||
|
|
||||||
# Relay information to OSC
|
# Relay information to OSC
|
||||||
if eye_info.info_type != InformationOrigin.FAILURE:
|
if eye_info.info_type != InformationOrigin.FAILURE:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user