Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | dabrain34 | |
Old Version | Published before Godot 3 was released. |
Hello,
I drew a custom polygon2D and set a color but i’m not able to change the alpha in the color class by code to a scalable value.
Indeed it’s either 0 or 1 when i’m using setColor(Color(0,255,0,128)).
Using the editor seems to work better but i need to draw perfect rectangle with custom alpha and color.
Maybe i can use another way to define my polygon color ?