Skip to content

Conversation

@DragonMoffon
Copy link
Collaborator

a super quick example for someone on Discord. I thought it might be nice to have as an example in base arcade. It relies on the experimental post-processing blur class.

@pushfoo
Copy link
Member

pushfoo commented Mar 17, 2024

I've made a PR (https://github.com/DragonMoffon/arcade/pull/3) to clean this up a bit. It won't be perfect yet, but this should make it legible faster than going through the code review process. Once it's merged, I think it should be good.

* Add top-level docstring with run instructions

* Clean up source style for shaders using dedent

* Make sprite instantiation more legible

* Make clear color cleaner and less hardcoded

* Make render program a property

* Switch to batch label instead of draw_text

* Add annotations and comments for clarity

* Clean up imports and spacing

* Remove redundant Color creation since we convert internally anyway

* Add docstring for DepthOfField

* Expand top-level docstring

* Spacing + initial label value fix

* Make the focus change speed a keyword argument of window + explain it in docstrings

* Fix mypy issue
Copy link
Member

@pushfoo pushfoo left a comment

Choose a reason for hiding this comment

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

LGTM. It's experimental and readable enough for us to finish polishing it later.

@Cleptomania Cleptomania merged commit 5d8f82a into pythonarcade:development Mar 19, 2024
@DragonMoffon DragonMoffon deleted the depth-of-field branch April 10, 2024 05:00
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.

3 participants