pivot_scaled_sprite_trans(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’« NAME πŸ’«

pivot_scaled_sprite_trans β€” rotates and stretches a sprite around a specified point, bestie. It's from the Allegro game programming library, and yes it's exactly as iconic as it sounds πŸ’…


✨ SYNOPSIS ✨

#include <allegro.h>

void pivot_scaled_sprite_trans(BITMAP *bmp, BITMAP *sprite, int x, int
y, int cx, int cy, fixed angle, fixed scale);

πŸŽ€ DESCRIPTION πŸŽ€

okay so picture this: it's basically rotate_scaled_sprite_trans() but with a glow-up. 🌸

What it does is it takes the point in the sprite at (cx, cy) and lines it up with (x, y) in the bitmap. Then it rotates and scales around that point. Not around some random corner, not around the middle unless you make it the middle β€” around the point you picked. main character energy fr fr πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’– that's the whole page, no notes. this little legend lives in the Allegro manual, version 4.4.3 β€” go forth and pivot your sprites around literally any point you want, bestie 🫢✨

πŸ“¦ where this page comes from