FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   point() vs rect()
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: point() vs rect()  (Read 396 times)
heliodrop

WWW
point() vs rect()
« on: Jul 18th, 2003, 1:46pm »

i have noticed a weird thing:
rect(10,10,1,1) is faster than point(10,10)
 
what is the reason of that?
why the point() function doesn't use the rect() one?
 
thanks!
 
fry


WWW
Re: point() vs rect()
« Reply #1 on: Jul 21st, 2003, 5:03pm »

really? are you sure? i can't imagine why this would be the case.. weird..
 
heliodrop

WWW
Re: point() vs rect()
« Reply #2 on: Jul 23rd, 2003, 11:01pm »

yes, i'm pretty sure of it
just check by yourself:
 
http://www.heliodrop.ch.tf/pointvsrect
 
here, you can find 2 versions of the same software
one with the point() method and another one with the rect() method
the sources are included.
in any case, i can see the difference with my computer.
 
P.S: i can see the difference of speed more clearly from processing than from my browser.
« Last Edit: Jul 27th, 2003, 4:42am by heliodrop »  
Pages: 1 

« Previous topic | Next topic »