Code: Select all
function load()
love.graphics.setLine(1)
end
Code: Select all
love.graphics.rectangle(love.draw_line, 100, 100, 50, 50)
Code: Select all
function load()
love.graphics.setLine(1)
end
Code: Select all
love.graphics.rectangle(love.draw_line, 100, 100, 50, 50)
You do not need to set the line width.iamwilhelm wrote:It's not well documented in the docs, and it took me a bit to figure out. In order to draw primitives, first you need to set the width of the line.Code: Select all
function load() love.graphics.setLine(1) end
Most examples cover this but you're right that the documentation should also mention it. Could you perhaps add it to the issue tracker (one of the links at the top of the page).Then, the docs don't mention how to set the type of drawing. It's a constant, rather than a stringCode: Select all
love.graphics.rectangle(love.draw_line, 100, 100, 50, 50)
Code: Select all
love.graphics.rectangle(love.draw_line, 100, 100, 200, 200)
What system are you using? I have not heard anyone voice such an issue before.iamwilhelm wrote:I tried it out again to reproduce it. It only happens with rectangles.
without setting the width, it doesn't show up. I'll put it as a bug in the issue trackerCode: Select all
love.graphics.rectangle(love.draw_line, 100, 100, 200, 200)
I'm using Ubuntu 8.10 Intrepid. Lua 5.1.3 and Love 0.5.0. Are there other system info that you need?osuf oboys wrote:What system are you using? I have not heard anyone voice such an issue before.iamwilhelm wrote:I tried it out again to reproduce it. It only happens with rectangles.
without setting the width, it doesn't show up. I'll put it as a bug in the issue trackerCode: Select all
love.graphics.rectangle(love.draw_line, 100, 100, 200, 200)
Yes, thank you.iamwilhelm wrote:I'm using Ubuntu 8.10 Intrepid. Lua 5.1.3 and Love 0.5.0. Are there other system info that you need?osuf oboys wrote:What system are you using? I have not heard anyone voice such an issue before.iamwilhelm wrote:I tried it out again to reproduce it. It only happens with rectangles.
without setting the width, it doesn't show up. I'll put it as a bug in the issue trackerCode: Select all
love.graphics.rectangle(love.draw_line, 100, 100, 200, 200)
Code: Select all
function draw(); love.graphics.rectangle(love.draw_line, 100, 100, 200, 200); end
yeah, the same thing happens. no rectangle unless I set the line width.osuf oboys wrote: Try running a LÖVE application that does not contain anything exceptCode: Select all
function draw(); love.graphics.rectangle(love.draw_line, 100, 100, 200, 200); end
That is quite odd, I got a white rectangle. I'm running the same things as iamwillhelm. Did you try changing the background color to see if it's making a black rectangle for you?iamwilhelm wrote:yeah, the same thing happens. no rectangle unless I set the line width.osuf oboys wrote: Try running a LÖVE application that does not contain anything exceptCode: Select all
function draw(); love.graphics.rectangle(love.draw_line, 100, 100, 200, 200); end
Wil
Might it be related to how, occasionally, drawing text without setting the font may cause the text to be drawn with some other font?Skofo wrote:That is quite odd, I got a white rectangle. I'm running the same things as iamwillhelm. Did you try changing the background color to see if it's making a black rectangle for you?iamwilhelm wrote:yeah, the same thing happens. no rectangle unless I set the line width.osuf oboys wrote: Try running a LÖVE application that does not contain anything exceptCode: Select all
function draw(); love.graphics.rectangle(love.draw_line, 100, 100, 200, 200); end
Wil
Users browsing this forum: Google [Bot] and 2 guests