[Resolved] Draw Line

Hi everybody,
I need a little help about the CORONA SDK api…

I like to create a function like this:

local tongue = display.newLine( sapo.x, sapo.y, e.target.x,e.target.y)  
 tongue:setColor( 255, 102, 102, 125 )  
 tongue.width = 15   
 timer.performWithDelay(2000, function() tongue:removeSelf() end, 1 );  

But i have a serious problem… The graphics is very bad jajaj :slight_smile:

What i need is to curve the line, in the other sdk that i had used (like .net framework) i can draw the line and set the edge round for example…

There are some api in corona that permit to do this?

Or if someone have an a good idea to create a extensible tongue for a frog, please post it down! :slight_smile: [import]uid: 153233 topic_id: 27162 reply_id: 327162[/import]

You could use something like this: http://developer.anscamobile.com/code/bezier-curves-corona [import]uid: 84637 topic_id: 27162 reply_id: 110302[/import]

Thank you for the support Danny :wink:

I used a little trick to simulate the tongue…

A DRAWLINE and a Circle at the end to simulate the smooth edge :stuck_out_tongue:
Now i’m going to see your link :wink: [import]uid: 153233 topic_id: 27162 reply_id: 110418[/import]

Glad to hear you got it sorted :slight_smile: [import]uid: 84637 topic_id: 27162 reply_id: 110435[/import]