PIVOT_SCALED_SPRITE_V_FLIP(3alleg4)

✨ NAME ✨

pivot_scaled_sprite_v_flip β€” rotates, stretches and flips a sprite around a specified point. It's the Allegro game programming library, bestie πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

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

🌸 DESCRIPTION 🌸

okay so picture this: it's literally rotate_scaled_sprite_v_flip(), right? Same energy. But with one lil glow-up: it takes the point in the sprite that you point at with (cx, cy) and lines it up with (x, y) in the bitmap β€” like a little anchor, a main character pinned in place πŸ‘‘

And then, from that exact point, it rotates and scales. The pivot is the vibe. Everything spins and stretches around it. Periodt. πŸ’…


πŸ’œ SEE ALSO πŸ’œ


and that's the whole page, no cap 🫢 this was Allegro, version 4.4.3, living in the manual as <code>pivot_scaled_sprite_v_flip(3alleg4)</code> β€” go forth and pivot your sprites, icon πŸ‘‘βœ¨