Material Box

Material Box

WEB Design & Material Images

Godot - Draw circle

Godot

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))

Godot

TitleGodot - Draw circle

CategoryGodot

Created

Update

AuthorYousuke.U