# The code behind lineTo(x,y);

**URL:** <https://forum.kirupa.com/t/the-code-behind-lineto-x-y/123867>\
**Category:** Uncategorized\
**Created:** [September 28, 2004, 4:46am UTC](https://forum.kirupa.com/t/the-code-behind-lineto-x-y/123867 "2004-09-28T04:46:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alphaOne](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@alphaOne](https://forum.kirupa.com/u/alphaOne)\
**Post date:** [September 28, 2004, 4:46am UTC](https://forum.kirupa.com/t/the-code-behind-lineto-x-y/123867/1 "2004-09-28T04:46:45Z")

</div>

Hello,

Lets say i have this code:

\_root.createEmptyMovieClip(“one”,1);  
with(one){  
lineStyle(0,0x000000,100);  
lineTo(100,100);  
}

So this code basically makes a clip with a line drawn from (0,0) to (100,100).  
What i want to know is how the line is being drawn?  
what is between the two points? colored pixles?  
If so how do i color them?  
If you know the code behind this please show me if you can…

thanx in advance…
