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

Re: [pygame] Rotate image around another point?



> > 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)

So he wants to add some clear areas in the surface? Isn't it better to keep a drawing offset together with the image? Or is this related to clipping somehow?

Ulf