godot-steering-ai-framework/project/demos/Utils/Line2DDraw.gd
Răzvan C. Rădulescu 3f58cc4921 Finish look and feel of the toy demos
Based on the 2D Beginner Project look, these demos now have the colorful
GDQuest "theme" to them.

This had the effect of removing the circle and triangle/ship sprites as
everything is drawn in Godot directly.
2020-02-04 12:12:51 +02:00

15 lines
226 B
GDScript

tool
extends Line2D
export(Color) var inner_color := Color() setget set_inner_color
func _draw() -> void:
draw_colored_polygon(points, inner_color)
func set_inner_color(val: Color) -> void:
inner_color = val
update()