cs50 / draw.cs50.io

https://draw.cs50.io
9 stars 6 forks source link

possible for p5 to smooth strokes? #8

Closed dmalan closed 6 years ago

dmalan commented 6 years ago

img_0002

dcoffey3296 commented 6 years ago

@dmalan, in the Dan branch in the latest commit, I implemented with vertices rather than drawing lines. It uses Catmull-Rom splines. This is as much smoothing as I think p5 will give us. See what you think. (there are other issues with this implementation) https://github.com/cs50/draw50/commit/966f387637c15ec4ecd6ed8edf349a6400cf8860

dmalan commented 6 years ago

Hm, seems better! Definitely no "smoothing" option for dithering or what not? Still a tad jaggy.

screen shot 2018-08-27 at 12 54 48 am
dcoffey3296 commented 6 years ago

Nope, from the documentation this is it this does break all ktnsr features currently, this is the only finger that works. Undo should be easy but erase becomes more complicated

dcoffey3296 commented 6 years ago

No but paper.js does nicely. This is resolved.