draw rectangle parameters
Posted: Mon Aug 11, 2008 7:34 am
I tried to draw a rectangle using the parameters listed in the documentation:
love.graphics.rectangle( x, y, w, h )
But that didn't work, because it actually expects a fifth argument, like this:
love.graphics.rectangle( bOutline, x, y, w, h )
Where bOutline == 1 draws the box as just a perimeter, and anything else (so it seems) draws the rectangle as a filled box.
Just thought I'd mention this, as I've found the documentation to be very useful thus far, and this is the only place that tripped me up.
--Mr. Strange
love.graphics.rectangle( x, y, w, h )
But that didn't work, because it actually expects a fifth argument, like this:
love.graphics.rectangle( bOutline, x, y, w, h )
Where bOutline == 1 draws the box as just a perimeter, and anything else (so it seems) draws the rectangle as a filled box.
Just thought I'd mention this, as I've found the documentation to be very useful thus far, and this is the only place that tripped me up.
--Mr. Strange