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?
Draw modes?
- jag_e_nummer_ett
- Citizen
- Posts: 52
- Joined: Thu May 16, 2013 6:31 pm
- Location: Stockholm, Sweden
Re: Draw modes?
There are only the options "fill" and "line" (the latter produces only the outline of the shape)
http://love2d.org/wiki/DrawMode
http://love2d.org/wiki/DrawMode
- jag_e_nummer_ett
- Citizen
- Posts: 52
- Joined: Thu May 16, 2013 6:31 pm
- Location: Stockholm, Sweden
Re: Draw modes?
Yea I thougt it was like "stroke" or something. Ty for the quick reply!
Re: Draw modes?
are there any plans for adding more modes?
- jag_e_nummer_ett
- Citizen
- Posts: 52
- Joined: Thu May 16, 2013 6:31 pm
- Location: Stockholm, Sweden
Re: Draw modes?
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.
- slime
- Solid Snayke
- Posts: 3170
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Draw modes?
I don't think so.jjmafiae wrote:are there any plans for adding more modes?
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?
don't remove any functions that breaks even more games, please forget everything.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Draw modes?
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.
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.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Draw modes?
And since we're still at 0.*, backwards compatibility is not a concern.kikito wrote:If backwards-compatibility is a concern
Help us help you: attach a .love.
Re: Draw modes?
, does that mean someone will have to create a library similar to AnAL(but with draw modes) or something?
Who is online
Users browsing this forum: No registered users and 3 guests