MCPcopy Index your code
hub / github.com/benfry/processing4 / redraw

Method redraw

core/src/processing/core/PApplet.java:2160–2175  ·  view source on GitHub ↗

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()

()

Source from the content-addressed store, hash-verified

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 *

Callers 1

componentResizedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected