[gd_scene load_steps=2 format=3 uid="uid://c8ncblufqk10x"]

[sub_resource type="GDScript" id="GDScript_t63le"]
script/source = "extends Node2D

@export var points:Array
@export var duration:float = 1
var radius
var color

func _draw():
	for _point in points:
		draw_circle(_point,radius,color)

func drawPoints(_points:Array = points,_radius:float = 50.0,_color:Color = Color.CRIMSON,_duration:float = 1):
	if(_points):
		points = _points
	duration = _duration
	radius = _radius
	color = _color
	$Timer.wait_time = duration
	$Timer.start()
	queue_redraw()


func _on_timer_timeout():
	points.clear()
	queue_redraw()


func _on_draw():
	pass # Replace with function body.
"

[node name="DebugDraw" type="Node2D"]
script = SubResource("GDScript_t63le")

[node name="Timer" type="Timer" parent="."]
one_shot = true

[connection signal="draw" from="." to="." method="_on_draw"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
