ellipse(3alleg4)
π ellipse β ok bestie, we're drawing OVALS now π
So this is a page from the Allegro manual, and it's all about one lil function that goes by ellipse. Buckle up, it's giving geometry but make it cute. π¦
β¨ NAME β¨
ellipse β draws an ellipse. Yeah. That's the whole job. It's from the Allegro game programming library, and it's lowkey one of the most satisfying things you can do with a bitmap. π
β¨ SYNOPSIS β¨
#include <allegro.h>
void ellipse(BITMAP *bmp, int x, int y, int rx, int ry, int color);
Like, look at that signature. Six whole arguments. She's high maintenance but she delivers. π
β¨ DESCRIPTION β¨
Draws an ellipse with the specified centre and radius.
That's the official tea, and it's exactly what happens β no cap. You hand her a bitmap, a centre point, a radius in x, a radius in y, and a color, and she just... puts an oval there. Iconic behaviour honestly. πΈ
Heads up bestie: notice it'srxandryβ two separate radii. That's the whole reason this isn't justcircle. Ifrxandryare equal you've basically got a circle wearing a little disguise. π₯Έ
β¨ SEE ALSO β¨
The girlies in the same friend group, fr fr:
circle(3alleg4)β the round onearc(3alleg4)β the partial oneellipsefill(3alleg4)β the one who ate and left no crumbs (filled version)do_ellipse(3alleg4)β the low-level one pulling the strings behind the scenesdrawing_mode(3alleg4)β controls the whole vibe of how things get drawnmakecol(3alleg4)β how you make thecolorargument in the first place
That's literally the whole page, babe. Short, sweet, and to the point.
Mwah π this one came from Allegro, version 4.4.3 β the ellipse(3alleg4) page. Go draw something gorgeous with it. πβ¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms