GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Implement `background` method by tychedelia · Pull Request #1308 · processing/processing4

Conversation

@tychedelia

@tychedelia tychedelia commented Oct 27, 2025

Copy link
Copy Markdown
Member

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tychedelia
Implement background.
907ff07
@tychedelia
tychedelia changed the base branch from main to the-wgpu-moment October 27, 2025 21:02
@tychedelia
Install wayland deps.
1ccf4f6
@catilac

catilac commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

Hi! What is a good way to test this?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tychedelia

tychedelia commented Nov 10, 2025

Copy link
Copy Markdown
Member Author

Hi! What is a good way to test this?

You can create a sketch that sets the background color (:

catilac reacted with laugh emoji
All reactions
  • 😄 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

catilac
catilac approved these changes Nov 10, 2025
View reviewed changes

@catilac catilac left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it works! and noted on the multiple clear calls.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@catilac
catilac merged commit 89f8a65 into processing:the-wgpu-moment Nov 10, 2025
catilac added a commit that referenced this pull request Jul 8, 2026
@tychedelia @catilac @Stefterv
Merge WebGPU backend (#1514)
25bca44
* *:ꔫ:*Renderer Project*:ꔫ:*

* Create workspaces for ffi and the renderer (#1275)

* Inital scaffold for libprocessing ffi.

* Remove EAP.

* Update docs.

* Factor out gradle utils. Add flag for disabling webgpu and enforcing android source level compat.

* Remove processing.h

* Set java version for all projects.

* libprocessing ffi error handling (#1293)

* FFI error setup

* Clear before init.

* Basic app lifecycle / surface creation.

* Throw when not on macos.

* Implement `background` method (#1308)

* Implement background.

* Install wayland deps.

* Support for windows surfaces. (#1310)

* Implement basic rendering flow (#1322)

* Implement basic rendering flow

* Fix naming.

* Actually fix rename.

* libprocessing submodule

* --recursive when cloning repo

* Enable submodule checkout in Gradle workflow

Added support for submodules in the checkout step.

* Enable submodules in checkout steps

Added submodule support to the checkout steps.

* Wayland support with new WebGPU renderer

* Gradle fixes from libprocessing refactor. (#1346)

* Updates from libprocessing. (#1392)

* Updates from libprocessing.

* Fixes for compat with main 17.

* Fixup docs.

* Upgrade to jdk-25.

* Upgrade to jdk-25.

* Materials, lights, input event forwarding, ellipse fix.

* Get the gradle sketch runner working locally.

* Conditionally execute webgpu tests

* ProcessingLibraryPlugin JVM Toggle update

* 4.5.5 in gradle.properties

* ProcessingPlugin fixes

---------

Co-authored-by: Moon D. <[email protected]>
Co-authored-by: Moon <[email protected]>
Co-authored-by: Stef Tervelde <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@catilac catilac catilac approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@tychedelia @catilac
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.