Draw modes?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
jag_e_nummer_ett
Citizen
Posts: 52
Joined: Thu May 16, 2013 6:31 pm
Location: Stockholm, Sweden

Draw modes?

Post by jag_e_nummer_ett »

Have been searching on the wiki, but cant find alterative draw modes.
For example the rectangle(mode,x,y,stuff).
On the examples on the wiki they use "fill" everywhere, what other modes are there?
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: Draw modes?

Post by Plu »

There are only the options "fill" and "line" (the latter produces only the outline of the shape)

http://love2d.org/wiki/DrawMode
User avatar
jag_e_nummer_ett
Citizen
Posts: 52
Joined: Thu May 16, 2013 6:31 pm
Location: Stockholm, Sweden

Re: Draw modes?

Post by jag_e_nummer_ett »

Yea I thougt it was like "stroke" or something. Ty for the quick reply!
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: Draw modes?

Post by jjmafiae »

are there any plans for adding more modes?
User avatar
jag_e_nummer_ett
Citizen
Posts: 52
Joined: Thu May 16, 2013 6:31 pm
Location: Stockholm, Sweden

Re: Draw modes?

Post by jag_e_nummer_ett »

More modes eh'? Well they could but I doubt they will, concidering we dont need more. Ideas for extra modes are like dotted border maybe, but that would require additional arguments if you wish to personlise it as you wish.
User avatar
slime
Solid Snayke
Posts: 3170
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Draw modes?

Post by slime »

jjmafiae wrote:are there any plans for adding more modes?
I don't think so.
Someone suggested removing the modes in favour of multiple functions: https://bitbucket.org/rude/love/issue/6 ... filled-and
I'm not sure how I feel about adding yet more functions. :)
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: Draw modes?

Post by jjmafiae »

don't remove any functions that breaks even more games, please forget everything.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Draw modes?

Post by kikito »

I am actually in favor of removing the drawmode param and having two functions - strokeRectangle and fillRectangle, for example. Right now the drawmode acts like a Flag Argument.

If backwards-compatibility is a concern, the correct answer is not "not changing anything", but deprecating the old functions so that they coexist for a while with the new ones, giving people some time to adapt.
When I write def I mean function.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Draw modes?

Post by Robin »

kikito wrote:If backwards-compatibility is a concern
And since we're still at 0.*, backwards compatibility is not a concern.
Help us help you: attach a .love.
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: Draw modes?

Post by jjmafiae »

:cry: , does that mean someone will have to create a library similar to AnAL(but with draw modes) or something?
Post Reply

Who is online

Users browsing this forum: Iori Branford and 4 guests