Fork me on GitHub
#quil
<
2022-02-14
>
Carlo18:02:31

Can I force quil to flush the drawing on the canvas, in case of a prolonged computation?

Charles Comstock09:02:45

I generally do this by making the algorithm re-entrant such that the draw routine picks up the changes from an algorithm on each frame and just renders those steps. In general, it's really helpful to separate the state of computation from the side-effect of drawing to the canvas.

🙌 1