MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / on_draw

Function on_draw

brainworkshop.py:4666–4685  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4664# the loop where everything is drawn on the screen.
4665@window.event
4666def 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.

Callers

nothing calls this directly

Calls 2

clearMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected