Title: Regression in 4.4.3: get() and set() are reading and writing from/to the wrong coordinates. · Issue #1131 · processing/processing4 · GitHub
Open Graph Title: Regression in 4.4.3: get() and set() are reading and writing from/to the wrong coordinates. · Issue #1131 · processing/processing4
X Title: Regression in 4.4.3: get() and set() are reading and writing from/to the wrong coordinates. · Issue #1131 · processing/processing4
Description: Most appropriate sub-area of Processing 4? Core/Environment/Rendering Processing version 4.4.3 Operating system MacOS 11.7.10 Steps to reproduce this Run the attached script to demonstrate the behavior. In v4.4.2, the color that get() re...
Open Graph Description: Most appropriate sub-area of Processing 4? Core/Environment/Rendering Processing version 4.4.3 Operating system MacOS 11.7.10 Steps to reproduce this Run the attached script to demonstrate the beha...
X Description: Most appropriate sub-area of Processing 4? Core/Environment/Rendering Processing version 4.4.3 Operating system MacOS 11.7.10 Steps to reproduce this Run the attached script to demonstrate the beha...
Opengraph URL: https://github.com/processing/processing4/issues/1131
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression in 4.4.3: get() and set() are reading and writing from/to the wrong coordinates.","articleBody":"### Most appropriate sub-area of Processing 4?\n\nCore/Environment/Rendering\n\n### Processing version\n\n4.4.3\n\n### Operating system\n\nMacOS 11.7.10\n\n### Steps to reproduce this\n\n1. Run the attached script to demonstrate the behavior.\n\nIn v4.4.2, the color that get() reads is white, as expected. And set() draws around (350, 350) as expected. But in v4.4.3 (and v4.4.4) get() reads blue, and set() draws around (175, 175).\n\nIt appears that both get() and set() are operating on (x/2. y/2) instead of (x,y).\n\n\n### snippet\n\n```processing\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////// //\u003c\u003e// //\u003c\u003e// //\u003c\u003e// //\u003c\u003e//\n// Define colors\ncolor white = color(255);\ncolor black = color(0);\ncolor red = color(255, 0, 0);\ncolor blue = color(0, 0, 255);\n\n//////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Setup\nvoid setup() {\n size(400, 400);\n background(white);\n noLoop();\n}\n\n//////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Draw\nvoid draw() {\n stroke(blue);\n fill(blue);\n rect(165, 165, 20, 20);\n\n // BUG 1: The color c is blue but it should be white.\n // It seems to be reading from (x/2, y/2) = (175, 175) instead of (350, 350).\n color c = get(350, 350);\n showColor(c); // R/G/B = 0.0 0.0 255.0 = blue\n\n // BUG 2: This draws around (175, 175). It should draw around (350, 350).\n for (int x = 340; x \u003c 360; x++) {\n for (int y = 340; y \u003c 360; y++) {\n set(x, y, red);\n }\n }\n\n //save(\"screenshot.xxx.png\");\n}\n\n//////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Show information about a color\nvoid showColor(color c) {\n print(\"R/G/B =\", red(c), green(c), blue(c) );\n if (c == white) {\n println(\" = white\");\n } else if (c == blue) {\n println(\" = blue\");\n } else {\n println(\"\");\n }\n}\n//////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n```\n\n\n### Additional context\n\n_No response_\n\n### Would you like to work on the issue?\n\nNo","author":{"url":"https://github.com/PhilipSharman","@type":"Person","name":"PhilipSharman"},"datePublished":"2025-06-01T22:20:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/1131/processing4/issues/1131"}
| 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:2a07922a-b7b7-349f-f286-ca2ff1ca460f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A25E:2D4000:1A62116:24C34DF:696A5143 |
| html-safe-nonce | fb256c875a30972f10e6a2fa01ddff32874ecc20fe04fccb17846103b505218b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjVFOjJENDAwMDoxQTYyMTE2OjI0QzM0REY6Njk2QTUxNDMiLCJ2aXNpdG9yX2lkIjoiNDk1NzcxODQ2NTY0OTIwMTQ3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fad8265d0049fadc677b3c787c029bb06c9bb37b9cee514566d48123ebbf985a |
| hovercard-subject-tag | issue:3107942580 |
| 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/processing4/1131/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea310868b20af341e7fac9f2f63ca9376554768d60b60c16f05b4b6f1539280d/processing/processing4/issues/1131 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea310868b20af341e7fac9f2f63ca9376554768d60b60c16f05b4b6f1539280d/processing/processing4/issues/1131 |
| og:image:alt | Most appropriate sub-area of Processing 4? Core/Environment/Rendering Processing version 4.4.3 Operating system MacOS 11.7.10 Steps to reproduce this Run the attached script to demonstrate the beha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PhilipSharman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| go-import | github.com/processing/processing4 git https://github.com/processing/processing4.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 844382769 |
| octolytics-dimension-repository_nwo | processing/processing4 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 844382769 |
| octolytics-dimension-repository_network_root_nwo | processing/processing4 |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width