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: patch-diff.githubusercontent.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:2f6cb99c-d82e-aaaa-13fe-fa12558b63a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96CA:70438:F38D95:13F2CB1:69717D5F |
| html-safe-nonce | 446a82f07c53693bb36df5d1dc86720cc49f60e34c70b11c98422c235d017932 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkNBOjcwNDM4OkYzOEQ5NToxM0YyQ0IxOjY5NzE3RDVGIiwidmlzaXRvcl9pZCI6Ijg1NDY5Mjc4OTk1NjQ3NjI1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 02a29be727feccf97ebffb5b8b07e6f5b0d0ea66a7a1d5776c024b552c5215f1 |
| 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 | 83f241b6f7605f8428e9ff3118ca968f3a377f07904e088dfd9465a7c12cc367 |
| 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 | 742da896705f64f8f87756c8e5cc3175bdbeb85e |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width