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

Take the current PEN-WEIGHT into account when drawing points #109

Closed iamFIREcracker closed 8 months ago

iamFIREcracker commented 8 months ago

Also, use CIRCLE instead of RECT -- that's what users will expect to see with bigger values of PEN-WEIGHT anyways.

Fixes #46.

vydd commented 8 months ago

Hey, thanks! Could it be changed so that RECT is still used for size 1? CIRCLE is generating more triangles.

Gleefre commented 8 months ago

I think that might not be desired for size 1 as well due to transforms, as even with size 1 it might be larger on screen after applying the view matrix.

iamFIREcracker commented 8 months ago

I believe @Gleefre is right: there is no easy way to know how big the point is going to be. I still like the idea of having POINT take into account the current value of PENT-WEIGHT: should we go back to my original plan of always drawing rectangles?

vydd commented 8 months ago

mmmm. let's go with the circle then. once stroke caps are implemented, maybe we can make that switch between circle/rect