jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

size method not does not function correctly in python mode #298

Closed Alfertp closed 4 years ago

Alfertp commented 4 years ago

Processing 3.5.4 within Win 10 environment No matter what value is put in size method, The result canvas would be 100pixels * 100pixels big. Even with code as simple as: def setup(): size=(200,400) printscreen

villares commented 4 years ago

Hi @Alfertp !

You made a mistake, you should call size as a function/method! size(200, 400) Your code shows you creating a variable named size (size = (200, 400)) that can't work.

Be sure to check the documentation: https://py.processing.org/reference/size.html Please close this issue :)

Alfertp commented 4 years ago

Hi @Alfertp !

You made a mistake, you should call size as a function/method! size(200, 400) Your code shows you creating a variable named size (size = (200, 400)) that can't work.

Be sure to check the documentation: https://py.processing.org/reference/size.html Please close this issue :)

oh, how silly I am. I should have checked that. Thank you very much!

villares commented 4 years ago

I think my first issue was a mistake too, something about translate() & pushMatrix()/popMatrix() and I was doing it wrong :) Don't let it discourage you, @Alfertp!

Also, check the http://discourse.processing.org Processing.Py category for friendly support.