Skip to content

Instantly share code, notes, and snippets.

@Plagman
Created October 3, 2021 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Plagman/3f3888395ba0c355f6088091f27e1126 to your computer and use it in GitHub Desktop.
Save Plagman/3f3888395ba0c355f6088091f27e1126 to your computer and use it in GitHub Desktop.
rotated_image = image.Rotate( Math.Pi / 2.0 );
sprite = Sprite( rotated_image );
sprite.SetX( Window.GetWidth() / 2 - rotated_image.GetWidth() / 2 );
sprite.SetY( Window.GetHeight() / 2 - rotated_image.GetHeight() / 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment