Interface: primitives
Posted: Thu Mar 06, 2008 6:00 pm
The primitives interface is horrible, as alxs pointed out. I believe that may be my fault, but here's a suggested improvement:
Code: Select all
love.graphics:line(x1, y1, x2, y2) -- Draw line.
love.graphics:line(x1, y1, x2, y2, w) -- Draw line with line width.
love.graphics:line(x1, y1, x2, y2, x3, y3) -- Draw triangle.
love.graphics:line(x1, y1, x2, y2, x3, y3, w) -- Draw triangle with line width.
love.graphics:line(x1, y1, x2, y2, x3, y3, x4, y4) -- Draw quad.
love.graphics:line(x1, y1, x2, y2, x3, y3, x4, y4, w) -- Draw quad with line width.
love.graphics:circle(x, y, r) -- Draw circle.
love.graphics:circle(x, y, r, w) -- Draw circle with line width.
love.graphics:fill(x1, y1, x2, y2, x3, y3) -- Fill triangle.
love.graphics:fill(x1, y1, x2, y2, x3, y3, x4, y4) -- Fill quad.
love.graphics:fill(x, y, r) -- Fill circle.