How to draw a geometrical Line using corona SDK?

By | January 18, 2012

This is actually very simple in corona.

local function drawLine( event )
  if(event.phase == "ended" ) then
        line = display.newLine(event.xStart, event.yStart, event.x, event.y)
        line:setColor(255,255,0)
        line.width = 5
  end
end
Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Reply

Your email address will not be published. Required fields are marked *