Whipped this up. Draws a line of any thickness using a sprite.
setVirtualResolution(640,480)
setSyncRate(0,0)
line1 = makeLine(10)
setLineColor(line1, 0,70,255)
setClearColor(64,64,64)
do
mx = getpointerx()
my = getpointery()
setLine(line1, 200, 200, mx, my)
print(screenfps())
sync()
loop
function makeLine(thickness)
c = createSprite(0)
setSpriteSize(c, 1, thickness)
setSpriteOffset(c, 0, thickness/2)
endfunction c
function setLine(sprite, x1, y1, x2, y2)
setSpritePosition(sprite, x1, y1)
l# = sqrt((x1-x2)^2 + (y1-y2)^2)
setSpriteScale(sprite, l#, 1)
x# = (x1 - x2) / l#
y# = (y1 - y2) / l#
a# = atanfull(x#, y#) + 90
setSpriteAngle(sprite, a#)
endfunction
function setLineColor(sprite, r, g, b)
setSpriteColor(sprite, r, g, b, 255)
endfunction