Material Box

Material Box

WEBデザイン & フリー素材

Godot - 円を描く

Godot

GDScriptで円を描く方法です。


draw_circle()を利用してスクリプトから円を描く事が可能です。
draw_circle()にて円の中心座標、半径、色と透明度を指定します。

# draw_circle(Vector2(x, y), 半径, Color(色, 透明度))

func _draw():
	draw_circle(Vector2(100, 100), 100, Color('#000000',0.5))

Godot

TitleGodot - 円を描く

CategoryGodot

Created

Update

AuthorYousuke.U