How do you draw a transparent image? #2470
Answered
by
hajimehoshi
nomad-software
asked this question in
Q&A
-
How do you draw a transparent image? |
Beta Was this translation helpful? Give feedback.
Answered by
hajimehoshi
Nov 24, 2022
Replies: 2 comments
-
Try https://github.com/hajimehoshi/ebiten/blob/2.4/examples/alphablending/main.go |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nomad-software
-
For reference, the part that was really confusing me was solved by using this as the background colour:
I guess the background colour is important for the image to alpha-blend properly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try
ColorM
'sScale
.https://github.com/hajimehoshi/ebiten/blob/2.4/examples/alphablending/main.go