|
Author |
Topic: flickering lines (Read 302 times) |
|
Steve
|
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
|
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
|
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.
|
|
|
|
|