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
   Programs
(Moderators: fry, REAS)
   flickering lines
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: flickering lines  (Read 302 times)
Steve

nerdytone WWW Email
flickering lines
« on: Apr 4th, 2004, 4:43am »

in this program im using a class to draw lines, and it only flickers while updating the classes. Draw and make the line intersect itself, it then take the line created with the intersection and makes the class instance draw that line, but those lines flicker. The line drawn in the loop(){} doesn't. any idea why?
 
applet
 
arielm

WWW
sRe: flickering lines
« Reply #1 on: Apr 4th, 2004, 3:41pm »

couldn't look into the source code, but generally when thing flicker: it's due to the fact that you draw stuff to the screen from within mousePressed() or any other "event handler"...
 

Ariel Malka | www.chronotext.org
Steve

nerdytone WWW Email
Re: flickering lines
« Reply #2 on: Apr 4th, 2004, 6:59pm »

it actually the opposite. the line being drawn inside the onMousePressed doesnt flicker. I'm updating the classes outside of that in a for loop, and only they flicker.
 
Pages: 1 

« Previous topic | Next topic »