color close to drawing
This commit is contained in:
parent
a1893a44d0
commit
422dd3c3b7
2
main.lua
2
main.lua
|
@ -49,9 +49,9 @@ function love.draw()
|
||||||
end})
|
end})
|
||||||
elseif type(line) == 'table' then
|
elseif type(line) == 'table' then
|
||||||
-- line drawing
|
-- line drawing
|
||||||
love.graphics.setColor(0.75,0.75,0.75)
|
|
||||||
line.y = y
|
line.y = y
|
||||||
y = y+pixels(line.h)
|
y = y+pixels(line.h)
|
||||||
|
love.graphics.setColor(0.75,0.75,0.75)
|
||||||
love.graphics.rectangle('line', 12,line.y, drawingw,pixels(line.h))
|
love.graphics.rectangle('line', 12,line.y, drawingw,pixels(line.h))
|
||||||
|
|
||||||
local mx,my = coord(love.mouse.getX()-12), coord(love.mouse.getY()-line.y)
|
local mx,my = coord(love.mouse.getX()-12), coord(love.mouse.getY()-line.y)
|
||||||
|
|
Loading…
Reference in New Issue