Advertisement
programcreator

Draw

Jan 11th, 2016
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. for i=0,500 do
  2.     for k,v in pairs(beziers) do
  3.         a,b = v.getX(i)
  4.         if a then
  5.             xBuffer[round(a)] = 1
  6.             if b then
  7.                 xBuffer[round(a)] = 1
  8.             end
  9.         end
  10.     end
  11.     for k,v in pairs(lines) do
  12.         a = v.getX(i)
  13.         if a then
  14.             xBuffer[round(a)] = 1
  15.         end
  16.     end
  17.     state = false
  18.     for x=0,600 do
  19.         if xBuffer[x] then
  20.             state = not state
  21.         end
  22.         if state then
  23.             love.graphics.points(x,i)
  24.         end
  25.     end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement