[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Rotate image around another point?





On 4/19/07, Ulf Ekström <uekstrom@xxxxxxxxx> wrote:
On 4/19/07, John Eriksson <john@xxxxxxxxxxxx> wrote:
> Well, no.
>
> I'm looking for a way to rotate the imagedata (like
> pygame.transform.rotate(...)) but your example rotates the image
> location. Right?

It is actually the same thing.

No, what John wants is a function like this:

rotationCenter = (myimage.center[0]+10,myimage.center[1]+20)
myimage = rotateImage(myimage,rotationCenter, 45)