Page 1 of 1

Documentation errors/inaccuracies

Posted: Wed Feb 06, 2008 4:00 am
by Merkoth
So, reading through the almighty docs I found a few issues:

love.graphics:setBackgroundColor(r, g, b): the example block reads love.graphics:setBackground, may be confusing

love.graphics:draw(image, x, y, angle): we pass the angle in degrees or radians?

Two dumb issues, that's for sure, but should be fixed nevertheless n_n

Edit 1:
love.mouse:isDown( button ): the example block reads

Code: Select all

if love.mouse:mouse:isDown(love.mouse_left) then

Re: Documentation errors/inaccuracies

Posted: Wed Feb 06, 2008 6:51 pm
by rude
Thanks, Merkoth. I'll fix that ASAP.

love.graphics:draw(image, x, y, angle) expects degrees, whereas Lua math uses radians. Maybe everything should be changed to radians?

Re: Documentation errors/inaccuracies

Posted: Wed Feb 06, 2008 9:19 pm
by Merkoth
IMHO, degrees are more "intuitive" but maybe that's just me. A simple math.rad() call won't kill me anyway n_n