Draw a circle (non-filled, w/thickness of +20 pixels, at center of x,y). Now find ALL x,y coordinates that circle occupies.

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,

?:)

views:1549 update:2011/10/11 8:57:46
corona forums © 2003-2011