We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I'm quite new in Processing.py, so this can be a damn question, but I'm confused using constrain. When I use constrain with three variables; constrain(mouseX,10,width - 10), it will return error that "TypeError: 'int' object is not callable". Is there someone who know how to fix it?
Answers
http://py.Processing.org/reference/constrain.html
AFAIK, constrain() gotta be a function, not an
int
datatype. /:)Only way I see it being an
int
is if you had committed some "cardinal sin" like reassigning constrain to some integer number! :-\"