I'm developing a Snake game in Java and I'm using an image as the head of the snake. That's whyI'm asking. Could anyone help me pls?
2 komentarze
Polub
2 komentarze
lukepat74
25 lut 2017
Anyway, when you're setting the color in hex, there is an additional "secret" value known as alpha, or transparency. So, 0xFF00FF is the same as 0xFF00FF00, because the color is actually Red, Green, Blue, Alpha.
To create a larger transparency, make the alpha value larger (eg.0xFF00FFA9).
I know almost nothing about java, but this is the main rule in programming.
Hope it helps,
The techno-logicals
Polub
lukepat74
25 lut 2017
What exactly is your problem? Is it that you don't know how to paste in on the screen?
Anyway, when you're setting the color in hex, there is an additional "secret" value known as alpha, or transparency. So, 0xFF00FF is the same as 0xFF00FF00, because the color is actually Red, Green, Blue, Alpha.
To create a larger transparency, make the alpha value larger (eg.0xFF00FFA9).
I know almost nothing about java, but this is the main rule in programming.
Hope it helps,
The techno-logicals
What exactly is your problem? Is it that you don't know how to paste in on the screen?