processing / processing-website

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

Docs error on textureMode #527

Closed huadmin closed 5 months ago

huadmin commented 5 months 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 5 months ago

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