Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | igbow |
extends Node2D
func _ready():
pass # Replace with function body.
func _draw():
draw_rect(Rect2(Vector2(0,0),Vector2(25,480)), Color("003366"), true)
draw_rect(Rect2(Vector2(295,0),Vector2(25,480)), Color("003366"), true)
draw_rect(Rect2(Vector2(25,0),Vector2(5,480)), Color(255, 255, 0), true)
draw_rect(Rect2(Vector2(30,0),Vector2(5,480)), Color(255, 255, 255), true)
draw_rect(Rect2(Vector2(285,0),Vector2(5,480)), Color(255, 255, 255), true)
draw_rect(Rect2(Vector2(290,0),Vector2(5,480)), Color(255, 255, 0), true)
draw_rect(Rect2(Vector2(0,0),Vector2(360,30)), Color(0,0,0),true)
draw_rect(Rect2(Vector2(0,30),Vector2(360,5)), Color(0,0,0,0.4),true)
why is the yellow and white rect is drawn on the top of the transparent black?
ScreenShot
this is a test project with just a Node2D and a script attached to it.