My Problem -
1 - Draw a circle (non-filled, w/thickness of +20 px, w/center at x,y)
2 - Now find all the (x,y) coordinates that that circle occupies and populate a table with these "results"
Number 1 is easy.
But how to do number 2 in corona/LUA?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
My Problem -
1 - Draw a circle (non-filled, w/thickness of +20 px, w/center at x,y)
2 - Now find all the (x,y) coordinates that that circle occupies and populate a table with these "results"
Number 1 is easy.
But how to do number 2 in corona/LUA?
A little bit of maths...
think of the big circle as a series of concentric circles, if you can use math to find how to plot a circle, then with the varying radius from n1 to n2 would be what you can check for.
It is not really that difficult. I will try to put up a tutorial on that one or make a custom control out of it, as check for a point in any shape
cheers,
?:)