Title: Add an example for the windowRatio() method · Issue #14 · processing/processing-examples · GitHub
Open Graph Title: Add an example for the windowRatio() method · Issue #14 · processing/processing-examples
X Title: Add an example for the windowRatio() method · Issue #14 · processing/processing-examples
Description: The windowRatio() method and its associated variables rwidth, rheight, rmouseX, rmouseY are demonstrated in the release notes for Processing 4.0 beta 7 with the code below but we don't yet have an example built-in. void setup() { windowR...
Open Graph Description: The windowRatio() method and its associated variables rwidth, rheight, rmouseX, rmouseY are demonstrated in the release notes for Processing 4.0 beta 7 with the code below but we don't yet have an ...
X Description: The windowRatio() method and its associated variables rwidth, rheight, rmouseX, rmouseY are demonstrated in the release notes for Processing 4.0 beta 7 with the code below but we don't yet have...
Opengraph URL: https://github.com/processing/processing-examples/issues/14
X: @github
Domain: atooq@github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add an example for the windowRatio() method","articleBody":"The `windowRatio()` method and its associated variables `rwidth`, `rheight`, `rmouseX`, `rmouseY` are demonstrated in the [release notes for Processing 4.0 beta 7](https://github.com/processing/processing4/blob/58ff6a3ca5c9c2f26a81d4014edc5d5ba0abf4c7/build/shared/revisions.md#processing-40-beta-7\r\n) with the code below but we don't yet have an example built-in.\r\n\r\n```Java\r\nvoid setup() {\r\n windowResizable(true);\r\n windowRatio(1280, 720);\r\n\r\n cursor(CROSS);\r\n strokeWeight(10);\r\n}\r\n\r\nvoid draw() {\r\n background(240);\r\n fill(255);\r\n rect(0, 0, rwidth, rheight);\r\n\r\n fill(0);\r\n textAlign(CENTER, CENTER);\r\n textSize(200);\r\n text(rmouseX + \", \" + rmouseY, rwidth/2, rheight/2);\r\n}\r\n```","author":{"url":"https://github.com/SableRaf","@type":"Person","name":"SableRaf"},"datePublished":"2022-09-24T09:18:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/14/processing-examples/issues/14"}
| 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:20e9b682-69f2-93f1-7235-ed77375f3be2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4D2:210405:588707C:738DFED:6A5D99BC |
| html-safe-nonce | fbbbfbbfadd6902774022eee84c3e32ce6b2113bc20419090d5f22a6aa085d80 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEQyOjIxMDQwNTo1ODg3MDdDOjczOERGRUQ6NkE1RDk5QkMiLCJ2aXNpdG9yX2lkIjoiNzQyMDc0NTIxMjIzMDEwNzQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4c52c303e6e23c765efe4e085c4b677330246af5f0e421508746e291b6293be9 |
| hovercard-subject-tag | issue:1384602319 |
| 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-examples/14/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f9abd0cc2dcc375c65556f20a0bc4a62b520e07956c767a5a60501b09b3a36e8/processing/processing-examples/issues/14 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f9abd0cc2dcc375c65556f20a0bc4a62b520e07956c767a5a60501b09b3a36e8/processing/processing-examples/issues/14 |
| og:image:alt | The windowRatio() method and its associated variables rwidth, rheight, rmouseX, rmouseY are demonstrated in the release notes for Processing 4.0 beta 7 with the code below but we don't yet have an ... |
| 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 | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/processing/processing-examples git https://github.com/processing/processing-examples.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 394096315 |
| octolytics-dimension-repository_nwo | processing/processing-examples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 394096315 |
| octolytics-dimension-repository_network_root_nwo | processing/processing-examples |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width