DrawLine

Example 1:

To draw a line from a fixed position to the current mouse position in a frame called MyFrame:

var ToPos = GetMousePosition();
var FromPos = new Object();
FromPos.x = 10;
FromPos.y = 50;
MyFrame.DrawLine( FromPos, ToPos );

Example 2:

To draw a line using two sets of points in a frame called MyFrame:

MyFrame.SetLineColour( 128, 128, 255 );
MyFrame.SetLineStyle( 2, 1 );
MyFrame.DrawLine( 100, 100, 100, 300 );

Close