Like in topic to more clarify I added image to the question.
It works but any idea how to use it inside widget ???
Could you clarify one thing?
- do you need to filter out the result from a large array?
- or do you want to create an array of points that create this shape?
Now I have 2 arrays from -20 to 20. And I want to filter it to get result in shape of circle.
Ok, I manage to do it … Your answer was really helpful and resolve my problem. Thank You
Essentially, we have 2 circles and we measure the distance from the centre.
If the point’s distance from the centre is greater than the radius of the smaller circle and
smaller than the radius of the larger circle, it falls within the shape.
Good luck with the rest!