smooth() and noSmooth()

Drawing a white 1 pixel wide horizontal line on a black background, the line is grey and fuzzy. Has this something to do with smooth() or noSmooth() ? If I look to http://p5js.org/reference/#/p5/noSmooth both circles look the same for me. Using smooth() or noSmooth() seems to make no difference.

Answers

  • I recommend looking on processing.org/reference. It's easier for me to navigate, at least.

    https://www.processing.org/reference/smooth_.html

    Your question made me curious about if smooth did do a difference. When I did the usual setup (setup() and draw()), there was no difference. However, when I took draw away and put the circle in setup, there was a noticeable difference. I'm not exactly sure what it means, hopefully the link I posted will help.

  • @itsnikusha It works in processing but my question is for p5.js

Sign In or Register to comment.