I couldn't find the type constants for the function love.graphics.circle( type, x, y, radius ).
It seems that they are not available in lua or the documentation is wrong [ http://love2d.org/docs/love_graphics_circle_1.html ].
As a workaround i needed to use the numeric values defined in the love source:
* 1 = DRAW_LINE -> should be available as love.outline
* 2 = DRAW_FILL -> should be available as love.filled
[bug, 0.5] missing constants for love.graphics.circle
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: [bug, 0.5] missing constants for love.graphics.circle
Thanks for posting this hagish, I couldn't be bothered logging on myself to do it.
Lovely quotes
somewhere within the jungle of administrative doom - rude
somewhere within the jungle of administrative doom - rude
Re: [bug, 0.5] missing constants for love.graphics.circle
love.graphics.circle(love.draw_line, ...)
Works fine for me.
Works fine for me.
Re: [bug, 0.5] missing constants for love.graphics.circle
Hmm, love.draw_line and love.draw_filled are in the documentation and appear to be exported to Lua as well ...
Re: [bug, 0.5] missing constants for love.graphics.circle
i would change the line at http://love2d.org/docs/love_graphics_circle_1.html
-> type The type of circle (outline/filled).
into
-> type The type of circle (love.draw_line/love.draw_fill).
then its perfectly clear.
because from looking at the documentation of the circle function you will not find the constant names
-> type The type of circle (outline/filled).
into
-> type The type of circle (love.draw_line/love.draw_fill).
then its perfectly clear.
because from looking at the documentation of the circle function you will not find the constant names
Who is online
Users browsing this forum: Bing [Bot] and 10 guests