Calling no_loop() inside setup() prevents draw() from running even once.
Expected behavior
draw() should run once, then stop looping.
This matches Processing’s behavior: calling noLoop() disables continuous looping but still allows the initial draw() call.
Actual behavior
draw() is never called.
Reproduction (mewnala)
from mewnala import *
def setup():
size(200, 200)
no_loop()
def draw():
background(255, 0, 0)
run()
Equivalent Processing sketch (works as expected)
void setup(){
size(200,200);
noLoop();
}
void draw(){
background(255,0,0);
}
Screenshots

Calling
no_loop()insidesetup()preventsdraw()from running even once.Expected behavior
draw()should run once, then stop looping.This matches Processing’s behavior: calling
noLoop()disables continuous looping but still allows the initialdraw()call.Actual behavior
draw()is never called.Reproduction (mewnala)
Equivalent Processing sketch (works as expected)
Screenshots