Title: `no_loop()` in `setup()` prevents `draw()` from running at all · Issue #133 · processing/libprocessing · GitHub
Open Graph Title: `no_loop()` in `setup()` prevents `draw()` from running at all · Issue #133 · processing/libprocessing
X Title: `no_loop()` in `setup()` prevents `draw()` from running at all · Issue #133 · processing/libprocessing
Description: 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 i...
Open Graph Description: 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 c...
X Description: 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 c...
Opengraph URL: https://github.com/processing/libprocessing/issues/133
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`no_loop()` in `setup()` prevents `draw()` from running at all","articleBody":"Calling `no_loop()` inside `setup()` prevents `draw()` from running even once.\n\n#### Expected behavior\n\n`draw()` should run once, then stop looping.\n\nThis matches Processing’s behavior: calling `noLoop()` disables continuous looping but still allows the initial `draw()` call.\n\n#### Actual behavior\n\n`draw()` is never called.\n\n#### Reproduction (mewnala)\n\n```python\nfrom mewnala import *\n\ndef setup():\n size(200, 200)\n no_loop()\n\ndef draw():\n background(255, 0, 0)\n\nrun()\n```\n\n#### Equivalent Processing sketch (works as expected)\n\n```java\nvoid setup(){\n size(200,200);\n noLoop();\n}\n\nvoid draw(){\n background(255,0,0);\n}\n```\n\n### Screenshots\n\n\u003cimg width=\"1111\" height=\"657\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/579ba84d-6168-4e00-ba69-2d4e4ab6db65\" /\u003e\n\n\u003cimg width=\"646\" height=\"269\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/df540250-b4b6-4c16-8241-1867bb8e9836\" /\u003e\n\n\n","author":{"url":"https://github.com/SableRaf","@type":"Person","name":"SableRaf"},"datePublished":"2026-04-24T14:58:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/133/libprocessing/issues/133"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1fddffde-2756-1280-5636-204236becc7d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6F8:3B1D59:79792C1:A58F9BD:6A5E5527 |
| html-safe-nonce | b606c734a8c8d31d79ec834202d4ea8505e36a981c9ac1439979b0b5bb9b695a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkY4OjNCMUQ1OTo3OTc5MkMxOkE1OEY5QkQ6NkE1RTU1MjciLCJ2aXNpdG9yX2lkIjoiNzkwMDM0NzQxNjg1Mjc3OTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 51ce1ebe4b5cca60ff18db2cdfbaa100a2cbc4184c0ca7d4312f5db4833c0e7b |
| hovercard-subject-tag | issue:4323757990 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/processing/libprocessing/133/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bc4be53dd73c549a29bbd205e0d3265aeaf1b78a221e7808bec523c648999e9a/processing/libprocessing/issues/133 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bc4be53dd73c549a29bbd205e0d3265aeaf1b78a221e7808bec523c648999e9a/processing/libprocessing/issues/133 |
| og:image:alt | 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 c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SableRaf |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7034b9f0130cdfcbd93bbcf3e8c0f4cc3007af54a2804bfd31f70d472b22852b |
| turbo-cache-control | no-preview |
| go-import | github.com/processing/libprocessing git https://github.com/processing/libprocessing.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 1101329545 |
| octolytics-dimension-repository_nwo | processing/libprocessing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1101329545 |
| octolytics-dimension-repository_network_root_nwo | processing/libprocessing |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e75cd8524a0802713165f77a0088258ff9261683 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width