Skip to content

Py5Graphics transparency on save different from Processing Python? #287

Answered by Maltiec
villares asked this question in Q&A
Discussion options

You must be logged in to vote

you should set parameter drop_alpha=False:

f.save("out_py5.png", drop_alpha=False)

by default py5 drops the alpha channel for compatibility with file formats like jpg

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@hx2A
Comment options

@villares
Comment options

villares Apr 22, 2023
Collaborator Author

@hx2A
Comment options

Answer selected by villares
Comment options

villares
Aug 18, 2023
Collaborator Author

You must be logged in to vote
1 reply
@hx2A
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants