Quick one, doesn't take into account a lot of things (really not to sure if it works..) but here..
Stuff = {}
width = 100 -- "Replace"
height = 10 -- "Replace"
amountOfDots = 50 -- "Replace"
spacing = 2 -- "Replace"
widthOfDash = 2 -- "Replace"
startPos = 0
startPos2 = 0
function prepStuff () -- PrepTheTables
current = 0
currentb = widthOfDash
for i=0,amountOfDots do
table.insert(Stuff,{current,currentb})
if i == currentb + spacing then
current = i
currentb = i+ widthOfDash
end
end
end
prepStuff ()
function drawThem()
for i,v in pairs(Stuff) do
local start = v[1]
local tend = v[2]
dxDrawLine(startPos+v[1],startPos2,v[1]+v[2],height,tocolor(0,0,0,0)) -- Swap v[1] to startPos2 for vertical
end
end