Editorial question27.7K views1,251 votes0 answers1,786 following
AI-generatedCross-thread drawing from thread() in Processing 3 and 4
Goal: Safely share state between a Processing thread() callback and the animation thread without calling drawing functions from the secondary thread. Processing runs setup() and draw() on a single animation thread, while thread() starts an independent JVM thread. The reference warns against cross-thread drawing calls, yet Processing 3 and 4 do not document a