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

Proper way to geometrically scale line sketches? #52

Open kchanqvq opened 2 years ago

kchanqvq commented 2 years ago

It seems that the current transform/matrix facility scales both the shape itself and the pen. Is there a nice way to scale the geometry of line sketches but maintain line thickness?

If this has to be done manually for now, would a patch that provides pen-preserving transformation be desirable? (I think to do that we need to do calculation in the drawing primitives instead of delegating to the OpenGL side).

vydd commented 1 year ago

Hey! That sounds reasonable. Can you think of an elegant way to support both? Thanks!