vydd / sketch

A Common Lisp framework for the creation of electronic art, visual design, game prototyping, game making, computer graphics, exploration of human-computer interaction, and more.
MIT License
1.41k stars 67 forks source link

[feature?] is it possible to prevent clear screen at each redraw #37

Closed Inc0n closed 3 years ago

Inc0n commented 4 years ago

I currently in the process of learning a bit about processing. I started with :trivial-gamekit. However, I disliked the idea of refreshing the screen at every draw. Especially for simple programs like random walker, wouldn't be much better if the program continuously draw, instead of keeping a list of objects drawn.

So is there a way to achieve this?

Average-user commented 3 years ago

@Inc0ns1st3nt did you managed to do it? At least in quil, the processing library for Clojure it is possible.

vydd commented 3 years ago

@Inc0n Have you tried setting COPY-PIXELS to T like in https://github.com/vydd/sketch/blob/master/examples/brownian.lisp#L15 ?

Also, please have a look at https://github.com/vydd/sketch/issues/7

Inc0n commented 3 years ago

Unfortunately it has been so long that I could not find the original source files, but it would seem that this would fix my issue. Thanks