Skip to content

Instantly share code, notes, and snippets.

@blt
Created February 22, 2012 21:00
Show Gist options
  • Save blt/1887235 to your computer and use it in GitHub Desktop.
Save blt/1887235 to your computer and use it in GitHub Desktop.
-- Unless I'm mistaken the default line width is 1, presumably pixels. Straight
-- one-pixel lines are invisible in my setup.
function love.draw()
-- Invisible
love.graphics.setLineWidth(1)
love.graphics.rectangle("line", 64, 64, 32, 32)
-- Visible
love.graphics.setLineWidth(2)
love.graphics.rectangle("line", 0, 0, 32, 32)
end
-- I'm using
--
-- $ love --version
-- LOVE 0.7.2 (Game Slave)
--
-- on a Debian Testing system, installed right out of Debian's repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment