We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Is it imposible to change the number of size with a variable
void setup() {
size(255, 200);
}
to
void setup() {
int something = 0
size(something, 200);
}
Answers
Generally it's not recommended due to JS Mode.
Anyways, if you wanna go for it, better use constants rather than variables for it:
Actually, it is simpler to just set the values in the size() call, and use
width
andheight
variables. And recommended, because Processing can parse the numerical values, not the constants, to find out the size of the canvas after export.