#Godot draw_line color not fully working

5 messages · Page 1 of 1 (latest)

hazy field
#

From the description of the Color function:
"Each component is a 16-bit floating-point value, usually ranging from 0 to 1" and "If you want to supply values in a range of 0 to 255, you should use Color8"

glass owl
#

Hmm, thanks, I'll try that.

#

I did draw_line(lineTip.position, (flower.global_position - lineTip.global_position) / 2, Color8(240, 50, 50, 1), 2) now... nothing is there now. It's just invisible

#

Oooh, nevermind! I have to make a from 1 to 255 too!

#

Thanks for the help!