processing / processing-website

Repository for the processing.org website
https://processing.org
GNU General Public License v2.0
59 stars 89 forks source link

Docs error on textureMode #527

Closed huadmin closed 2 weeks ago

huadmin commented 2 weeks ago

Please note the error in the code examples on this page:

https://processing.org/reference/textureMode_.html

The text indicates that IMAGE is the default mode, yet in the two code exx., the one with the normalized coordinates omits the texturemode command entirely (which is the point of the doc page: to show the command in use; this code will not run as intended and will instead show one pixel of the source expanded to the size of the Shape) and the one with Image pixel coordinates redundantly includes texturemode, when I am sure the writer meant to do the reverse.

SableRaf commented 2 weeks ago

Hi @huadmin and thanks for reporting this issue! You're absolutely correct. This should be a quick fix.