Page 1 of 1

What is a triangle "mode"?

Posted: Tue Jul 05, 2011 11:20 pm
by n0ug4t
I'm new to LOVE (but not to Lua) and in the love.graphics module there's a triangle. I looked at the triangle and the first argument is "mode." Playing around with it I know now it's a string value, but I don't know what string values are valid. So, what is mode?

Re: What is a triangle "mode"?

Posted: Tue Jul 05, 2011 11:32 pm
by bmelts
It's DrawMode, which describes whether the triangle (or any other shape, as it's used in rectangle and circle and polygon and the rest) is drawn as an outline or as a filled shape. Your choices are "fill" or "line".

The wiki has all these modes available for your perusal!

Re: What is a triangle "mode"?

Posted: Tue Jul 05, 2011 11:37 pm
by n0ug4t
Thanks!