Godot - Draw circle
How to draw circle in GDScript.
It is possible to draw circles from script using draw_circle()
.
With draw_circle()
, specify circle center coordinates, radius, color and transparency.
# draw_circle(Vector2(x, y), radius, Color(color, transparency))
func _draw():
draw_circle(Vector2(100, 100), 100, Color('#000000',0.5))