draw_multiline() function is bugged?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MangoTree

Hi all,

It looks like the draw_multiline() function is unaffected by stroke width. Take the code below:

func _draw():
var a=[]
var dashes=100
for i in range (dashes):
	a.append(Vector2(OS.window_size.x/2,OS.window_size.y/2)+Vector2(i-dashes,0)*10)
draw_multiline(a,Color(0.1,0.9,0.05),5)

Try running this code with different values for line width. The thickness remains virtually unaffected. Is this a bug, or am I missing out something?

Thanks in advance.

Same seems to have been reported last year: CanvasItem.draw_multiline width and antialiasing not functional · Issue #16448 · godotengine/godot · GitHub

marcorexo | 2019-03-13 01:42