Why differente positions for the same node?

Godot Version

`Godot 4.3 - windows 11

Why does this happen? Shouldn’t they be in the same position? I did this to know which one would be drawn second, and I ended up discovering that they are different positions! Why is that?

position returns local position, so

draw_circle(position, 8, Color.DARKRED)

Works correctly, since drawing function by default draws from the transform of this object
Link to a chapter about it

And when you use child.position, it’s local position is used, which is different from the local position of the parent, so what you might have to do is

draw_circle(position + child.position, 8, Color.YELLOW)

Alternatively you could also use draw_set_transform to tell CanvasItem to draw next functions from transform of a child.