processing/processing-docs

2 Dimensional List Example has error

Jambamatt opened this issue · 2 comments

Issue description

URL(s) of affected page(s)

Proposed fix

Issue description

The 'draw a grayscale image' example on this page appears to have an error.
This became apparent when I changed the width and height
size(200,200) to a non-square area size (1000,400) and the code continued to only affect a square area.
I suspected that the nRows and nCols references were round the wrong way here;
for row in xrange(nRows)
and here
for col in xrange(nCols):

URL of affected page

https://py.processing.org/tutorials/2dlists/

Proposed fix

Swapping them did fix the issue.
( Unfixed code highlighted in attached image)
https://user-images.githubusercontent.com/7932634/60363279-fe4ead00-99da-11e9-8c3b-71450775c088.jpg

REAS commented

Thank you for reporting. All issues for the Processing.py documentation should be directed to this repository: https://github.com/kazimuth/processing-py-site/issues