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.4k stars 67 forks source link

Enable drawing in event-handling functions #126

Open Kevinpgalligan opened 10 months ago

Kevinpgalligan commented 10 months ago

This would make it possible to, e.g. draw a circle wherever the user clicks. Or to implement a drawing application.

It's possible to workaround this as it stands by saving the input to a slot in the sketch, and then performing the actual drawing in the sketch body, but that's comparatively ugly.

May depend on improvements to copy-pixels t / changes to the rendering pipeline that @Gleefre is working on.