Dizzle wrote on Oct 23rd, 2009, 12:10pm:all the examples i've read have gone under draw
Perhaps you looked at wrong examples I sampled a couple of Processing official examples and they set it in setup(). Which makes sense: the frame rate has rarely to change during a sketch, no need to set it repeatedly.
It is true for lot of settings that you don't plan to change during the sketch, like smooth(), textFont(), or even strokeWidth() (but you might have reasons to change the last two, just pointing out often sketches set it over and over without real need).
Quote:why did you use int instead of float when does one use float instead of int
When you need a fractional quantity... In general, coordinates, loop number, number of objects, etc. are integer. Random numbers, some quantities, angles, etc. can be float.
Quote:could i use more than two int commands
Commands Perhaps you mean declarations You can use as many as you want/need.