I am working on a Vector Library that allows things like Arcs, segments, ellipses, polygons and most importantly, Flood Fill. The thing that I have missed in both CoronaSDK and xCode/Objective-C is FloodFill.
Here is an unoptimised proof of concept video showing flood fill working and the code to achieve the video that you see is
newVect = require("newVectors").init()
newVect:setForeColor({255,255,0})
newVect:polygon({{50,200},{70,0},{20,-90},{-90,20},{20,90},{-20,-20}})
newVect:setForeColor({255,0,0})
newVect:circle(50,50,30)
newVect:setForeColor({255,255,255})
newVect:rectangle(20,100,200,75)
timer.performWithDelay(1000,function()
newVect:setForeColor({0,0,255})
newVect:floodfill(30,110)
end)
timer.performWithDelay(2000,function()
newVect:setForeColor({255,0,0})
newVect:floodfill(50,50)
end)
timer.performWithDelay(3000,function()
newVect:setForeColor({255,255,0})
newVect:floodfill(70,150)
end)
The video can be found here
Hope this could be of use to some developers… more cool stuff coming too…
cheers,
? [import]uid: 3826 topic_id: 15065 reply_id: 315065[/import]