OSL ‐ Pen - Mistium/Origin-OS GitHub Wiki
draw lines
pen “down”
pen “up”
modify the line being drawn
pen “size” int
pen “opacity” 0-100
pen "brightness" 0-100
render lines with osl
Basic line
c #fff
pen "size" 3
// setup the colour and size of the line
goto 0 0
line 50 0 -50 -50
// draws a line centered on 0 0 from 50,0 to -50,-50
import "win-buttons"
// import the system window buttons
Dotted Line
c #fff
pen "size" 3
// setup the colour and size of the dotted line
goto 0 0
dots -100 -100 100 100 30
// draws a line made of 30 dots from -100,-100 to 100,100
import "win-buttons"
// import the system window buttons
Striped Line
c #fff
pen "size" 3
// setup the colour and size of the striped line
goto 0 0
stripe -100 100 100 -100 10 5
// draws a line made of 10 segments from -100,100 to 100,-100 and a distance between each segment of 5
import "win-buttons"
// import the system window buttons