Title: Reference enhancement for `shapeMode()` - it does not affect GROUP shapes · Issue #625 · processing/processing-website · GitHub
Open Graph Title: Reference enhancement for `shapeMode()` - it does not affect GROUP shapes · Issue #625 · processing/processing-website
X Title: Reference enhancement for `shapeMode()` - it does not affect GROUP shapes · Issue #625 · processing/processing-website
Description: Which area of the website does this enhancement relate to? Reference Describe the enhancement I propose for the shapeMode() reference page to include the information that when a PShape object is a GROUP it will not be affected by the sha...
Open Graph Description: Which area of the website does this enhancement relate to? Reference Describe the enhancement I propose for the shapeMode() reference page to include the information that when a PShape object is a ...
X Description: Which area of the website does this enhancement relate to? Reference Describe the enhancement I propose for the shapeMode() reference page to include the information that when a PShape object is a ...
Opengraph URL: https://github.com/processing/processing-website/issues/625
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Reference enhancement for `shapeMode()` - it does not affect GROUP shapes","articleBody":"### Which area of the website does this enhancement relate to?\n\nReference\n\n### Describe the enhancement\n\nI propose for the [`shapeMode()` reference page](https://processing.org/reference/shapeMode_.html) to include the information that when a PShape object is a GROUP it will not be affected by the `shapeMode()` drawing mode and will always be drawn from the \"internal\" origin of the shape. I think this behavior should not change.\n\nTentative/suggested addition:\n\n> Shape mode will not affect the drawing of [GROUP](https://processing.org/reference/createShape_.html) PShape objects.\n\n\n### Why is this enhancement important?\n\nI believe other users might be surprised by this behavior, as I was, and seek clarification at the reference documentation, which could have a note about it.\n\n### Additional context\n\n```pde\nvoid setup(){\n size(200, 200);\n \n shapeMode(CENTER);\n\n PShape shp = createShape(GROUP);\n PShape square = createShape(RECT, 0, 0, 80, 80);\n shp.addChild(square);\n shape(shp, 100, 100);\n \n PShape other = createShape();\n other.beginShape();\n other.noFill();\n other.vertex(0, 0);\n other.vertex(80, 0);\n other.vertex(80, 80);\n other.vertex(0, 80);\n other.endShape(CLOSE); \n shape(other, 100, 100);\n}\n```\n\n\n\nI wonder if someone could confirm this is true for all GROUP shapes? If it is not the behavior for all groups, how to differentiate and predict the behavior? If this behavior is found to be incorrect, a bug, could we have an ORIGIN mode to trigger exactly this behavior on GROUPS? \n\nI found out about this behavior because py5 generates GROUP shapes when converting from external geometry sources. Ref: https://github.com/py5coding/py5generator/discussions/623\n\n","author":{"url":"https://github.com/villares","@type":"Person","name":"villares"},"datePublished":"2025-04-09T20:19:59Z","url":"https://github.com/processing/processing-website/issues/625"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:90340881-c7ea-7d54-e5ea-8f37cd173bbc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C20:15B10E:138847:1A8E23:6B05F8AB |
| html-safe-nonce | 464c74a58bd873714e1771215bf981d38fb989f51f1e71451b92006eded1c221 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzIwOjE1QjEwRToxMzg4NDc6MUE4RTIzOjZCMDVGOEFCIiwidmlzaXRvcl9pZCI6IjYwNTcwMTQ5NzE0MjUyMjQ4NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 079b9c8298a682d3d0b4312b57c29e95b254e462f55b5656fa5a53e6b8fc6cf2 |
| hovercard-subject-tag | issue:2983833092 |
| 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/processing-website/625/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bc199ef9f77efbc79b6cd4c8190866d101d48da102d52ecc5a3affaeab629d87/processing/processing-website/issues/625 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bc199ef9f77efbc79b6cd4c8190866d101d48da102d52ecc5a3affaeab629d87/processing/processing-website/issues/625 |
| og:image:alt | Which area of the website does this enhancement relate to? Reference Describe the enhancement I propose for the shapeMode() reference page to include the information that when a PShape object is a ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | villares |
| hostname | github.com |
| expected-hostname | github.com |
| None | c214754a6652274794ed4e054a7b71be999d69843f103ba54893001d45010ece |
| turbo-cache-control | no-preview |
| go-import | github.com/processing/processing-website git https://github.com/processing/processing-website.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 286690715 |
| octolytics-dimension-repository_nwo | processing/processing-website |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 286690715 |
| octolytics-dimension-repository_network_root_nwo | processing/processing-website |
| 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 | 7d164a4e71eb333b2b17fd5b17e18efb7855505c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width