Ebiten: How do you rotate an imagine around it's center point?

Created on 13 May 2019  路  2Comments  路  Source: hajimehoshi/ebiten

I'm sorry if this is not the right place to ask but I don't know if another place. I would like to know how to rotate an image around it's center please.
I mean like in this example

question

Most helpful comment

Asking your question here is good since this is a signal indicating a lack of documentation :-)

https://github.com/hajimehoshi/ebiten/blob/master/examples/rotate/main.go

I think the rotate example explains what you want.

All 2 comments

Asking your question here is good since this is a signal indicating a lack of documentation :-)

https://github.com/hajimehoshi/ebiten/blob/master/examples/rotate/main.go

I think the rotate example explains what you want.

Thank you, it does!

Was this page helpful?
0 / 5 - 0 ratings