Closed Terkwood closed 4 years ago
extends Node2D
func _ready():
var l = Line2D.new()
l.width = 20
var p0 = Vector2(0,0)
var p1 = Vector2(600,0).rotated(deg2rad(22.5))
var p2 = Vector2(600,0).rotated(deg2rad(22.5 + 22.5)) + p1
l.add_point(p0)
l.add_point(p1)
l.add_point(p2)
add_child(l)
https://docs.godotengine.org/en/3.1/tutorials/2d/custom_drawing_in_2d.html
https://github.com/mneumann/lindenmayer-system/blob/master/examples/fractal_plant.rs