How can i make circles that are coming randomly on the screen with different colors and so they can be absorbed like in Gyro game ?
Here is my code(for now) :
local spinner = display.newImage( “circle.png”)
spinner.x, spinner.y = display.contentCenterX, display.contentCenterY
local adjustment = 0
local PI = 3.14159265358
local function onTouch(e)
if(e.phase == “began”) then
local dx = e.x - spinner.x
local dy = e.y - spinner.y
adjustment = math.atan2(dy,dx) * 180 / PI - spinner.rotation
end
if(e.phase == “moved”) then
local dx = e.x - spinner.x
local dy = e.y - spinner.y
spinner.rotation = (math.atan2(dy,dx) * 180 / PI) - adjustment
end
end
Runtime:addEventListener(‘touch’, onTouch)
Here is my picture of circle,but it will be better after some time. 
