Back Edit Delete

Explain the flow of information in a simple big-bang program after an on-tick event occurs. Describe what the tick handler receives and produces, what happens to that result, and how to-draw is involved.

Short answer

Accepted answer

The on-tick handler receives the current world state and produces a new world state. big-bang stores that returned value as the new current world state. The to-draw handler can then consume that latest world state and produce the Image displayed on the screen.