Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- love.graphics.setCanvas(can)
- local xBuffer = {}
- local state = false
- for i=0,500 do
- for k,v in pairs(beziers) do
- a,b = v.getX(i)
- --print(a, type(a))
- --print(b, type(b))
- if a then
- xBuffer[round(a)] = 1
- if b then
- xBuffer[round(a)] = 1
- end
- end
- end
- for k,v in pairs(lines) do
- a = v.getX(i)
- --print(a, type(a))
- if a then
- xBuffer[round(a)] = 1
- end
- end
- state = false
- for x=0,600 do
- if xBuffer[x] then
- --state = not state
- love.graphics.points(x,i)
- end
- if state then
- --love.graphics.points(x,i)
- end
- end
- end
- love.graphics.setCanvas()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement