Fork me on GitHub

Hello! I'm using fun-mode , and trying to draw a non-moving background of several rectangles. Redrawing them on every frame definitely works but it makes my fans spin. I tried drawing them in the setup but they vanish on the second frame. Is there a way to just have them drawn on frame 1 and have them stick around for life of the program without re-drawing? Thanks

Charles Comstock17:09:35

You can create more then one graphics context and paste them together. That way you could construct a background image graphics context in setup, draw the shapes to it, and then before drawing the foreground in each frame, use q/image or q/copy to paste the background on the empty canvas and then draw on top of that.


Great, thanks! I’ll try it out