Skip to content

no_loop() in setup() prevents draw() from running at all #133

@SableRaf

Description

@SableRaf

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

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions