circle(3alleg4)

πŸ’– circle β€” bestie we're drawing a CIRCLE

okay so quick vibe check: this is circle(3alleg4) from the Allegro manual ✨ and yes she's literally just here to draw you a circle. Allegro game programming library, if you didn't know. Now you do. πŸŽ€


🌸 NAME

circle β€” draws a circle. πŸ¦‹

Allegro game programming library</purl> β€” that's the whole brand, that's the whole vibe, that's the whole function.


✨ SYNOPSIS

#include <allegro.h>

void circle(BITMAP *bmp, int x, int y, int radius, int color);

no cap, that's the whole signature. five arguments, zero drama. πŸ’…


πŸŽ€ DESCRIPTION

Draws a circle with the specified centre and radius. β­•

that's it. that's the function. you hand her a BITMAP *bmp, you tell her where the middle lives with x and y, you say how big with radius, and you pick the drip with color β€” and boom, circle. iconic behaviour fr fr.

heads up bestie: the colour you pass in is a packed colour value, so if you've got a separate r, g, b situation going on, you wanna run that through makecol first. iykyk. πŸ’–

πŸ‘‘ SEE ALSO


okay that's the whole page, you're officially a circle girlie now πŸ’–βœ¨

with love from Allegro, version 4.4.3 β€” mwah, go draw something round, bestie πŸŽ€πŸ¦‹πŸ’œ