---
name: "pivot_sprite_trans"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pivot_sprite_trans"
---

# pivot\_sprite\_trans(3alleg4)

Rotates a sprite around a specified point. Allegro game programming library.

## NAME

pivot\_sprite\_trans - Rotates a sprite around a specified point. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void pivot\_sprite\_trans(BITMAP \*bmp, BITMAP \*sprite, int x, int y,** **int cx, int cy, fixed angle);**

## DESCRIPTION

Like rotate\_sprite\_trans(), but aligns the point in the sprite given by (cx, cy) to (x, y) in the bitmap, then rotates around this point.

## SEE ALSO

**rotate\_sprite\_trans**(3alleg4), **pivot\_scaled\_sprite\_trans**(3alleg4), **pivot\_sprite\_v\_flip\_trans**(3alleg4), **exsprite**(3alleg4)
