()
| 4664 | # the loop where everything is drawn on the screen. |
| 4665 | @window.event |
| 4666 | def on_draw(): |
| 4667 | if mode.shrink_brain: |
| 4668 | return |
| 4669 | window.clear() |
| 4670 | if mode.draw_graph: |
| 4671 | graph.draw() |
| 4672 | elif mode.saccadic: |
| 4673 | saccadic.draw() |
| 4674 | elif mode.title_screen: |
| 4675 | brain_graphic.draw() |
| 4676 | titleMessageLabel.draw() |
| 4677 | titleKeysLabel.draw() |
| 4678 | else: |
| 4679 | batch.draw() |
| 4680 | if not mode.started and not CLINICAL_MODE: |
| 4681 | brain_icon.draw() |
| 4682 | logoUpperLabel.draw() |
| 4683 | logoLowerLabel.draw() |
| 4684 | for label in input_labels: |
| 4685 | label.draw() |
| 4686 | |
| 4687 | # the event timer loop. Runs every 1/10 second. This loop controls the session |
| 4688 | # game logic. |