Title: Implement `background` method by tychedelia · Pull Request #1308 · processing/processing4 · GitHub
Open Graph Title: Implement `background` method by tychedelia · Pull Request #1308 · processing/processing4
X Title: Implement `background` method by tychedelia · Pull Request #1308 · processing/processing4
Description: Allows setting the background clear color in a sketch. Changes: Adds a camera when spawning a window. Note that we also add a RenderLayers component, which we'll also need to attach to any geometry spawned to render in that window. This is just hygiene for eventual multi-window apps. Adds a simple Color FFI struct. We'll likely want to make this more complicated later or support all the color spaces that bevy does (even if processing doesn't). But this demonstrates how to do allocations on the Java side. I didn't implement the PImage override here as that will require the actual renderer (i.e. not just a clear color). It's also possible the semantics here are wrong. I think processing may allow you to clear multiple times in a frame, which means drawing a fullscreen quad not setting the render pass clear. But we can follow up with that once more rendering infra is implemented.
Open Graph Description: Allows setting the background clear color in a sketch. Changes: Adds a camera when spawning a window. Note that we also add a RenderLayers component, which we'll also need to attach to any geo...
X Description: Allows setting the background clear color in a sketch. Changes: Adds a camera when spawning a window. Note that we also add a RenderLayers component, which we'll also need to attach to any...
Opengraph URL: https://github.com/processing/processing4/pull/1308
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5185e56a-a479-b352-2748-327f468fda88 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 820A:30460E:6F5E6D3:92CAB50:6A5DF0A7 |
| html-safe-nonce | cbb0bf6a3d9fabaf189b6164938e65efbc6980223676dcfabf7c7876ddf2e23b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjBBOjMwNDYwRTo2RjVFNkQzOjkyQ0FCNTA6NkE1REYwQTciLCJ2aXNpdG9yX2lkIjoiODYzMDUyMzMyNzUxNjg5NzQ0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dae7184c2e8b95d2e3291106cb923ebb33147f681426c09a76b23a8ebca73fcd |
| hovercard-subject-tag | pull_request:2952668315 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/processing/processing4/pull/1308/files |
| twitter:image | https://avatars.githubusercontent.com/u/10366310?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10366310?s=400&v=4 |
| og:image:alt | Allows setting the background clear color in a sketch. Changes: Adds a camera when spawning a window. Note that we also add a RenderLayers component, which we'll also need to attach to any geo... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8e8f322dc74b1a8d5bafb296008dbb96bb4a0bc6ee2d6f30844ab111697c520d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ae00b343090b49d0d18b8184187f51a39ed917c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width