PS_RECT(3)
π PS_RECT β the manual page, but make it a group chat π
okay bestie, gather round, because today we're talking about PS_rect from the Library Functions Manual (section 3, the library-call girlies) and honestly? she's a whole vibe. let's get into it β¨
π NAME π
PS_rect β she draws a rectangle. that's it. that's the girl. iconic behavior, no notes π
πΈ SYNOPSIS πΈ
#include <pslib.h>
void PS_rect(PSDoc *psdoc, float x, float y, float width, float height)
like. look at her. five args, zero drama. we love a low-maintenance queen π
π¦ DESCRIPTION π¦
so here's the tea β β PS_rect draws a rectangle, and the lower left corner of that rectangle sits at (x, y). that's the anchor point. that's home base. that's where she lives.
and the important part, bestie, is that the rectangle starts and ends in its lower left corner. full circle moment. she begins there, she returns there. main character energy fr fr π₯
now, the path situation β this is where it gets spicy:
- if you call this function outside a path, it will start a new path. fresh start, clean slate, new era π«
- if you call it within a path, it will add the rectangle as a subpath. nesting era. she's flexible like that π«Ά
β οΈ and now the caveat, listen up: if the last drawing operation does not end in the lower left corner, then there will be a gab in the path. π no cap. a literal gap in your path. so likeβ¦ check where your last operation ended, because she is NOT coming to pick you up from that coordinate. know your coordinates bestie π
π SEE ALSO π
go give these siblings some love too:
PS_cirle(3)π (yes it's spelled like that in the original, i am not fixing her, she's perfect)PS_arc(3)πPS_lineto(3)β
π AUTHOR π
this manual page was written by Uwe Steinmann uwe@steinmann.cx. thank you for your service, legend π«‘π
and that's the whole page, bestie! this one came from the Library Functions Manual, PS_RECT(3), and it's serving exactly what it needed to serve. no more, no less, periodt. π
β¨πΈπ¦π
π¦ where this page comes from
- debian bookworm: pslib-dev 0.4.7-1+b1
- debian trixie: pslib-dev 0.4.8-1+b1
- ubuntu jammy: pslib-dev 0.4.7-1
- ubuntu noble: pslib-dev 0.4.7-1build2
- ubuntu questing: pslib-dev 0.4.8-1
- ubuntu resolute: pslib-dev 0.4.8-1build1
- ubuntu stonking: pslib-dev 0.4.8-3 Β· GPL-2.0-or-later OR LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms