Page 1 of 2

Draw modes?

Posted: Tue Oct 15, 2013 9:03 am
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?

Re: Draw modes?

Posted: Tue Oct 15, 2013 9:06 am
by Plu
There are only the options "fill" and "line" (the latter produces only the outline of the shape)

http://love2d.org/wiki/DrawMode

Re: Draw modes?

Posted: Tue Oct 15, 2013 9:56 am
by jag_e_nummer_ett
Yea I thougt it was like "stroke" or something. Ty for the quick reply!

Re: Draw modes?

Posted: Tue Oct 15, 2013 12:28 pm
by jjmafiae
are there any plans for adding more modes?

Re: Draw modes?

Posted: Tue Oct 15, 2013 12:57 pm
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.

Re: Draw modes?

Posted: Tue Oct 15, 2013 10:35 pm
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. :)

Re: Draw modes?

Posted: Wed Oct 16, 2013 5:16 am
by jjmafiae
don't remove any functions that breaks even more games, please forget everything.

Re: Draw modes?

Posted: Wed Oct 16, 2013 11:27 am
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.

Re: Draw modes?

Posted: Wed Oct 16, 2013 12:13 pm
by Robin
kikito wrote:If backwards-compatibility is a concern
And since we're still at 0.*, backwards compatibility is not a concern.

Re: Draw modes?

Posted: Wed Oct 16, 2013 3:50 pm
by jjmafiae
:cry: , does that mean someone will have to create a library similar to AnAL(but with draw modes) or something?