We have vector objects like circle and rect.
But how can I make a triangle with color filled to red?
And I want to its touching area also to be triangle.
Can this feature be supported?
Thanks! [import]uid: 35642 topic_id: 8772 reply_id: 308772[/import]
YES! This, I desperately need this feature!
Even if they don’t respond to touch events, being able to make filled custom polygons would be an absolute lifesaver for me right now.
The physics debug draw mode can do it already so hopefully they can copy some of that code over and make it work for us
[import]uid: 53578 topic_id: 8772 reply_id: 32894[/import]
Yes, i would really want shapes and be able to use them for: masking and be able to make physic bodies, for walls and plattforms. [import]uid: 9577 topic_id: 8772 reply_id: 33070[/import]
I’m very happy to see that I am not alone in the desert…
See my post http://developer.anscamobile.com/forum/2011/04/04/displaynewarc
As said, as 2D is the corebusiness of Corona, these new functions would be legitimate (arc, ellipse, triangle, quad…) [import]uid: 8970 topic_id: 8772 reply_id: 33072[/import]
Just like to add my own support / request to this thread.
I was looking at some old code that converted windows .EMF and .WMF shapes to Flash vector objects and was a bit disappointed that I couldn’t update my code to output the .WMF and .EMF assets directly to Lua and use display.newPolygon()
Come on guys - 2D polygon support!
Jon…
[import]uid: 7901 topic_id: 8772 reply_id: 33383[/import]
Me too. I was really surprised I cant fill a polygon I made with a color. All I want to do is make a triangle and fill it with a color. Can’t find a way to do it.
[import]uid: 39480 topic_id: 8772 reply_id: 34959[/import]
I agree!
[import]uid: 39480 topic_id: 8772 reply_id: 34960[/import]
I have some code that sort of does this ~ a native draw polygon or vertex array thing would be much better. But I don’t think my filled triangles respond to touch events though
I responded to a similar topic over at http://developer.anscamobile.com/forum/2011/04/04/displaynewarc
So maybe I should put together a display module while we wait for the real stuff? I think they said that graphics are up there on the priority list though, so we’ll probably see this sort of thing in the daily builds soon.
-Angelo [import]uid: 12822 topic_id: 8772 reply_id: 34967[/import]
what ? graphics? core? arcs? polygons? oh mine…
I guess we are not in Kansas anymore
c [import]uid: 24 topic_id: 8772 reply_id: 35141[/import]
I agree, a function that paints an arbitrary polygon with a fill by a given array of points would be extremely useful.
This should allow us to draw shapes of *any* kind:
Yes, this can be easily done in Lua, but it’s not very efficient - dozens of newLine() calls and a huge group of display objects as a result, instead of just one call resulting in one display object. [import]uid: 52103 topic_id: 8772 reply_id: 66629[/import]
Adding my vote for this as well. Need the ability to paint an arbitrary polygon. [import]uid: 102773 topic_id: 8772 reply_id: 69591[/import]
Oh wow, yes - I had not fully realised the disabling nature of this until now. Full-on filled (preferably shaded, masked, graduated, etc.) polygons are a must… [import]uid: 8271 topic_id: 8772 reply_id: 80316[/import]
Big +1 here - filled polygons would be incredibly useful for us. [import]uid: 117383 topic_id: 8772 reply_id: 86932[/import]
- 1000! [import]uid: 77881 topic_id: 8772 reply_id: 86936[/import]
Hi,
was something updated since 2011.04?
What is the current status?
I couldn’t find anything in the daily build release logs from the past months. [import]uid: 95346 topic_id: 8772 reply_id: 88515[/import]
+1 [import]uid: 29384 topic_id: 8772 reply_id: 114437[/import]
Hi - is there any chance of this feature being added? I could really do with it.
Thanks! [import]uid: 123492 topic_id: 8772 reply_id: 116194[/import]