Strange behaviour of

Whant to make a simple line
Using that code

var line = new Sprite ();
   (5, 0x24AFC4);
            line.x =60;
            line.y = 200;
            addChild (line);

But at screen i see this

but at code, as I understand right, I have straight horizontal line.

so, I understood.
.graphics.lineTo drawing from zero.
For my example, I need

line.x =60;
line.y = 200; (200,0);

Try this :smile:, 0x24AFC4);, 0);, 300);

Or how about this?, 200);, 200);

If you don’t change line.x and line.y, your coordinates will make more sense.