g3n / engine

Go 3D Game Engine (http://g3n.rocks)
https://discord.gg/NfaeVr8zDg
BSD 2-Clause "Simplified" License
2.74k stars 292 forks source link

Add opacity support for gui.Panel #270

Open j100002ben opened 2 years ago

danaugrs commented 2 years ago

Hi @j100002ben ! This is nice, but are there any issues with using the alpha channel of the color(s) as opacity? Those are more flexible because you can set the opacity for each color independently. If the concern is having to set the alpha value for all colors when you want to set the global panel opacity, then we could have Panel.SetOpacity modify the alpha value for all colors at once. What do you think?