Is there a way to manually export an ebiten.Image to a png or other image format #2854
-
I have an image that I manually generated which isn't properly rendering. I would like to export to a pong or other image format in order to help debug and understand what's wrong with it. Is there a function that allows you to do this. Otherwise I'll submit a feature request. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think you are talking about your game (#2852), and the background was blue on browsers while gray on desktops. My guess is that you are using wrong colors as premultiplied alpha colors. See https://github.com/tinne26/kage-desk/blob/main/docs/tutorials/premult.md |
Beta Was this translation helpful? Give feedback.
-
Use |
Beta Was this translation helpful? Give feedback.
Use
EBITENGINE_SCREENSHOT_KEY
environment variable (https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2#hdr-Environment_variables)