Executes the code within draw() one time. This functions allows the program to update the display window only when necessary, for example when an event registered by mousePressed() or keyPressed() occurs. In structuring a program, it only makes sense to call redraw()
()
| 2158 | * @see PApplet#frameRate(float) |
| 2159 | */ |
| 2160 | synchronized public void redraw() { |
| 2161 | if (!looping) { |
| 2162 | redraw = true; |
| 2163 | // if (thread != null) { |
| 2164 | // // wake from sleep (necessary otherwise it'll be |
| 2165 | // // up to 10 seconds before update) |
| 2166 | // if (CRUSTY_THREADS) { |
| 2167 | // thread.interrupt(); |
| 2168 | // } else { |
| 2169 | // synchronized (blocker) { |
| 2170 | // blocker.notifyAll(); |
| 2171 | // } |
| 2172 | // } |
| 2173 | // } |
| 2174 | } |
| 2175 | } |
| 2176 | |
| 2177 | /** |
| 2178 | * |