Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚡ Adds a transparent PIXI.js canvas option #437

Merged
merged 1 commit into from
Sep 17, 2023

Conversation

markmehere
Copy link
Contributor

This is a niche case that unfortunately requires a lot of code.

Every now and then you need the background to show through PIXI.js canvas.

Here's an example...

https://codepen.io/ggojedap/pen/ZErJRXJ

I used it for the stars in a scrolling Star Wars text.

Unfortunately PIXI.js (at least the version we're using) doesn't seem to allow you to set transparency dynamically or after set-up. So it can't be easily implemented by custom code or in catmods.

This pull request adds it as an option along with the rest of the PIXI app settings.

@CosmoMyzrailGorynych CosmoMyzrailGorynych merged commit 353532c into ct-js:develop Sep 17, 2023
1 check passed
CosmoMyzrailGorynych pushed a commit that referenced this pull request Oct 18, 2023
Upgraded for pixi-v7 by CoMiGo

(cherry picked from commit 353532c)
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