FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixes for Python particle API by tychedelia · Pull Request #252 · processing/libprocessing · GitHub

Repository navigation

Fixes for Python particle API - #252

Merged
catilac merged 1 commit into
mainfrom
python-particle-api
Oct 5, 2026
Merged

catilac merged 1 commit into
mainfrom
python-particle-api

Conversation

tychedelia commented Sep 29, 2026 •
edited
Loading

Copy link
Copy Markdown
Member

Makes the Python particle API read more like numpy and match Processing.

  • Positional operands. p.apply(COMBINE, "velocity", "force", op="add"), like np.add(a, b, out=...). out= and options stay keywords. The old a=/b= keywords now error.
  • Attributes are created on first write. No more declaring custom attributes up front. GENERATE has nothing to infer a size from, so it needs components=.
  • create_particles(1000) / create_particles(shape), matching Java's createParticles(int) / createParticles(PShape). attributes= is still there if you want to pre-declare.
  p = create_particles(1000)
  p.apply(REDUCE, "velocity", out="speed", op=LENGTH)
  p.apply(COMBINE, "velocity", "speed", op=MUL)

All the examples are updated to the new forms.

tychedelia added this pull request to stack #256 September 29, 2026 04:50
tychedelia removed this pull request from stack #256 September 29, 2026 05:06
tychedelia added this pull request to stack #258 September 29, 2026 05:06

github-actions Bot commented Sep 29, 2026 •
edited
Loading

Copy link
Copy Markdown

Visual regression: no changes across 43 cases

baseline 496b5c8bd8 · adapter llvmpipe (LLVM 20.1.2, 256 bits) (Vulkan, Mesa 25.2.8-0ubuntu0.24.04.4 (LLVM 20.1.2))

Open the visual report · workflow run

tychedelia force-pushed the python-particle-api branch 2 times, most recently from bf3e911 to b97cee5 Compare September 29, 2026 18:45
Base automatically changed from vector-map-broadcast to main October 5, 2026 14:34
catilac force-pushed the python-particle-api branch from b97cee5 to 3f3b13f Compare October 5, 2026 14:35
catilac merged commit 6d74bd3 into main Oct 5, 2026
5 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL