What is a triangle "mode"?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
n0ug4t
Prole
Posts: 6
Joined: Tue Jul 05, 2011 11:17 pm

What is a triangle "mode"?

Post 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?
User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

Re: What is a triangle "mode"?

Post 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!
n0ug4t
Prole
Posts: 6
Joined: Tue Jul 05, 2011 11:17 pm

Re: What is a triangle "mode"?

Post by n0ug4t »

Thanks!
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 212 guests