René's URL Explorer Experiment


Title: PShape does not provide getters for rectMode / ellipseMode · Issue #1359 · processing/processing4 · GitHub

Open Graph Title: PShape does not provide getters for rectMode / ellipseMode · Issue #1359 · processing/processing4

X Title: PShape does not provide getters for rectMode / ellipseMode · Issue #1359 · processing/processing4

Description: Most relevant area for this enhancement? Core/Environment/Rendering Feature to enhance The PShape class Enhancement details Enhancement description I was half way developing some classes to convert between PShapes and OPENRNDR Shapes but...

Open Graph Description: Most relevant area for this enhancement? Core/Environment/Rendering Feature to enhance The PShape class Enhancement details Enhancement description I was half way developing some classes to convert...

X Description: Most relevant area for this enhancement? Core/Environment/Rendering Feature to enhance The PShape class Enhancement details Enhancement description I was half way developing some classes to convert...

Opengraph URL: https://github.com/processing/processing4/issues/1359

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PShape does not provide getters for rectMode / ellipseMode","articleBody":"### Most relevant area for this enhancement?\n\nCore/Environment/Rendering\n\n### Feature to enhance\n\nThe PShape class\n\n### Enhancement details\n\n#### Enhancement description\nI was half way developing some classes to convert between `PShape`s and OPENRNDR `Shape`s but got stuck. \n\nWhen dealing with `PShape.PRIMITIVE` types, `PShape.getKind()` returns what kind of shape is it (rect, ellipse, ...) and the `PShape.getParams()` returns an array of float values (x, y, width...) One needs to know the `kind` to know what the float values mean. But it's not sufficient, because if one called `ellipseMode` before, the values may mean center x and y, or corner x and y, either width or radius.\n\nI didn't find a way to query `ellipseMode` or `rectMode`.\n\n#### Benefits\nAdding a way to query this information would help cross framework use of the `PShape` data structures.\n\n#### Challenges\nI think adding two getters to `PShape` shouldn't have any negative impact, but I'm not very familiar with the code base to be sure.\n\n#### Additional context\nHere a wip function where I try to convert an ELLIPSE `PShape` to an OPENRNDR `Shape`. This is incomplete, because the meaning of params 0, 1, 2 and 3 depend on the `ellipseMode` used, and there's no way to figure this out (I think).\n\n```kotlin\n        PShape.PRIMITIVE -\u003e {\n            listOf( // 101\n                when (kind) {\n                    PShape.RECT -\u003e Rectangle( // 30\n                        params[0] * 1.0, params[1] * 1.0,\n                        params[2] * 1.0, params[3] * 1.0\n                    ).contour\n\n                    PShape.ELLIPSE -\u003e Ellipse( // 31\n                        params[0] * 1.0, params[1] * 1.0,\n                        params[2] * 0.5, params[3] * 0.5\n                    ).contour\n\n                    PShape.LINE -\u003e LineSegment(\n                        params[0] * 1.0, params[1] * 1.0,\n                        params[2] * 1.0, params[3] * 1.0\n                    ).contour\n\n                    // ARC, TRIANGLE, QUAD, SPHERE, BOX\n                    else -\u003e error(\"unsupported primitive kind: $kind\")\n                }\n            )\n\n```\n\n`PShape` holds `ellipseMode` and `rectMode` variables, but they are `protected` and without getters.\n\n### Would you like to help implement this enhancement?\n\nI’m not sure yet","author":{"url":"https://github.com/hamoid","@type":"Person","name":"hamoid"},"datePublished":"2025-12-12T12:25:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1359/processing4/issues/1359"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2f5ce7e7-20a8-f738-2821-6145a674396b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB2EA:EA98B:7AF7DF:AF4A75:696FAFE6
html-safe-nonce4fd946666873ae90043f2f6646e1bce20c9f2c6933ebf61674b8653c9712e8eb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkVBOkVBOThCOjdBRjdERjpBRjRBNzU6Njk2RkFGRTYiLCJ2aXNpdG9yX2lkIjoiMjM3OTgxODg4NzczODc5ODA1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac658ce2b2a00c6ca6fc284bb5fcedddf9a67c33c24f89bea83a72134e6a4498a2
hovercard-subject-tagissue:3723245381
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/processing/processing4/1359/issue_layout
twitter:imagehttps://opengraph.githubassets.com/008be17137e7a8401bc96172b5b23558f88a97e5b791a8de04d7ce871a26abec/processing/processing4/issues/1359
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/008be17137e7a8401bc96172b5b23558f88a97e5b791a8de04d7ce871a26abec/processing/processing4/issues/1359
og:image:altMost relevant area for this enhancement? Core/Environment/Rendering Feature to enhance The PShape class Enhancement details Enhancement description I was half way developing some classes to convert...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehamoid
hostnamegithub.com
expected-hostnamegithub.com
None356c704aafcc9a6179b2bc62a546ee20a28226cdeddba29d8ae86c3750ef0f76
turbo-cache-controlno-preview
go-importgithub.com/processing/processing4 git https://github.com/processing/processing4.git
octolytics-dimension-user_id1617169
octolytics-dimension-user_loginprocessing
octolytics-dimension-repository_id844382769
octolytics-dimension-repository_nwoprocessing/processing4
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id844382769
octolytics-dimension-repository_network_root_nwoprocessing/processing4
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee19b0670387556fcdd8027326ad85eecb0b536dd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/processing/processing4/issues/1359#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Fprocessing4%2Fissues%2F1359
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Fprocessing4%2Fissues%2F1359
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=processing%2Fprocessing4
Reloadhttps://patch-diff.githubusercontent.com/processing/processing4/issues/1359
Reloadhttps://patch-diff.githubusercontent.com/processing/processing4/issues/1359
Reloadhttps://patch-diff.githubusercontent.com/processing/processing4/issues/1359
processing https://patch-diff.githubusercontent.com/processing
processing4https://patch-diff.githubusercontent.com/processing/processing4
Please reload this pagehttps://patch-diff.githubusercontent.com/processing/processing4/issues/1359
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fprocessing%2Fprocessing4
Fork 126 https://patch-diff.githubusercontent.com/login?return_to=%2Fprocessing%2Fprocessing4
Star 311 https://patch-diff.githubusercontent.com/login?return_to=%2Fprocessing%2Fprocessing4
Code https://patch-diff.githubusercontent.com/processing/processing4
Issues 221 https://patch-diff.githubusercontent.com/processing/processing4/issues
Pull requests 35 https://patch-diff.githubusercontent.com/processing/processing4/pulls
Actions https://patch-diff.githubusercontent.com/processing/processing4/actions
Projects 2 https://patch-diff.githubusercontent.com/processing/processing4/projects
Wiki https://patch-diff.githubusercontent.com/processing/processing4/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/processing/processing4/security
Please reload this pagehttps://patch-diff.githubusercontent.com/processing/processing4/issues/1359
Insights https://patch-diff.githubusercontent.com/processing/processing4/pulse
Code https://patch-diff.githubusercontent.com/processing/processing4
Issues https://patch-diff.githubusercontent.com/processing/processing4/issues
Pull requests https://patch-diff.githubusercontent.com/processing/processing4/pulls
Actions https://patch-diff.githubusercontent.com/processing/processing4/actions
Projects https://patch-diff.githubusercontent.com/processing/processing4/projects
Wiki https://patch-diff.githubusercontent.com/processing/processing4/wiki
Security https://patch-diff.githubusercontent.com/processing/processing4/security
Insights https://patch-diff.githubusercontent.com/processing/processing4/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/processing/processing4/issues/1359
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/processing/processing4/issues/1359
PShape does not provide getters for rectMode / ellipseModehttps://patch-diff.githubusercontent.com/processing/processing4/issues/1359#top
enhancementNew feature or requesthttps://github.com/processing/processing4/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/hamoid
https://github.com/hamoid
hamoidhttps://github.com/hamoid
on Dec 12, 2025https://github.com/processing/processing4/issues/1359#issue-3723245381
enhancementNew feature or requesthttps://github.com/processing/processing4/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.