I have bunch of images (say 10) I have generated both as array or PIL object.
I need to integrate them into a circular fashion to display them and it should adjust itself to the resolution of the screen, is there anything in python that can do this?
I have tried using paste, but figuring out the resolution canvas and positions to paste is painful, wondering if there is an easier solution?
We can say that points are arranged evenly in a circle when there is a constant angle
thetabetween neighboring points.thetacan be calculated as 2*pi radians divided by the number of points. The first point is at angle0with respect to the x axis, the second point at angletheta*1, the third point at angletheta*2, etc.Using simple trigonometry, you can find the X and Y coordinates of any point that lies on the edge of a circle. For a point at angle
ohmlying on a circle with radiusr:Using this math, it is possible to arrange your images evenly on a circle:
Result: