If so, then this is best I can up with
// Project: drawstroke
// Created: 2018-02-21
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "drawstroke" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
do
DrawMyline(100,100,200,200,10)
Print( ScreenFPS() )
Sync()
loop
function DrawMyline (x1,y1,x2,y2,size)
for a=0 to size
// left and right
DrawLine(x1+a,y1,x1+a,y2,MakeColor(255,255,255),MakeColor(255,255,255))
DrawLine(x2-a,y1,x2-a,y2,MakeColor(255,255,255),MakeColor(255,255,255))
//top and bottom
DrawLine(x1,y1-a,x2,y1-a,MakeColor(255,255,255),MakeColor(255,255,255))
DrawLine(x1,y2-a,x2,y2-a,MakeColor(255,255,255),MakeColor(255,255,255))
next
endfunction