We are about to switch to a new forum software. Until then we have removed the registration on this forum.
void Setup(){
size(700,700,P3D); }
void draw(){ background(0);
if(mousePressed){// This if statement should allow the user to click and make a box appear pushMatrix(); translate(mouseX0.01,mouseY0.01); rotateX(mouseX); rotateY(mouseY); box(150); popMatrix(); } }
Answers
How big is your sketch?
How big should it be?
Why might your sketch not be the size you want?
Why might the size() function not get called?
Is Setup() the same as setup()?
My sketch is about 100 by 100 when it should be 700 by 700. If I use setup the whole thing crashes so I use Setup. I did not know about or consider size(). I am running Processing3(Is that the same as Processing Js?)
https://forum.Processing.org/two/discussion/8045/how-to-format-code-and-text
There are even some more! O:-)
"If I use setup the whole thing crashes so I use Setup."
That's a terrible reason.
You sketch worked fine for me when I used setup() with Processing 2.
JAVA and processing is case sensitive, so Setup is not setup !!!!!
please use
setup()
anddraw()
andbox()
with small lettersI know processing js is case sensitive. I know java is case sensitive. I have a bad memory card(this is why it crashes), and it works just fine when I use Setup.
interesting.