Looking for solution to let the shown image rotating around its center

rotating is done by calculating the new XY-coordinates with sinus (rotating angle) and cosinus (rotating angle)

See this thread and the links inside

If you expect a solution as easy as
myPicture.rotate(rotationAngle) you will have to google if such a library exists.

If this is just some kind of gimmick for showing something animated or some process in the code is active and working choose something much easier to code like the character-sequence / -- \ | / -- or a dot-pattern that gets repeated
.
..
...
....

best regards Stefan

1 Like