XGC(1)
π XGC(1) β the X graphics demo, bestie edition π
okay so this is xgc, a lil X graphics demo from the General Commands Manual shelf. yes it's a manual page, yes it's a whole vibe, let's get into it π«Ά
β¨ NAME β¨
xgc β X graphics demo π
π SYNOPSIS π
xgc [-toolkitoption ...]
that's it. that's the whole thing. iconic honestly.
π¦ DESCRIPTION π¦
So the xgc program is out here demonstrating all the various features of the X graphics primitives. main character energy. And in X, most of the details about the graphics you're about to generate are stored in a resource called a graphics context (a GC, iykyk). The xgc program gives you a whole user interface for setting the various GC components. Then you press the "Run" button and boom β those results get displayed in the big drawing window on the right β¨. Timing information shows up in the window right below that one. obsessed.
The items in the upper left hand window work as follows:
- Function β specify the logical function with which primitives will be drawn. The most usual setting is
"set", i.e. just render pixels without any regard for what's been drawn before. no thoughts, head empty, pixels only π - LineStyle β specify whether lines should be drawn solid in foreground, dashed in foreground, or alternating foreground and background.
- CapStyle β specify the appearance of the ends of a line.
- JoinStyle β specify the appearance of joints between consecutive lines drawn within a single graphics primitive.
- FillStyle β specify whether lines, text and fill requests are solid, tiled with a pixmap, or stippled.
- FillRule β specifies the rule used to fill polygons. The EvenOdd rule means that if areas overlap an odd number of times, they are not drawn. The Winding rule means that overlapping areas are always filled, regardless of how many times they overlap. (yes the polygons are fighting, no we're not mediating)
- ArcMode β specifies the rule for filling of arcs. The boundary of the arc is either a
Chordor two radii. - planemask β specifies which planes of the drawing window are modified. By default, all planes are modified.
- dashlist β specifies a pattern to be used when drawing dashed lines.
- Line Width β specifies the width in pixels of lines to be drawn. Zero means to draw using the server's fastest algorithm with a line width of one pixel. (zero = speedrun mode πβοΈ)
- Font β specifies the font to be used for text primitives.
- Foreground and Background β specify the pixel values to be applied when drawing primitives. The Foreground value is used as the pixel value for set bits in the source in all primitives. The Background value is used as the pixel value for unset bits in the source when using
Copy Plane, drawing lines withLineStyleofDoubleDash, and filling withFillStyleofOpaqueStippled. - Percentage of Test β this scrollbar permits specifying only a percentage of the test to be run. The number at the left indicates the current setting, which defaults to
100%. full send, no cap.
The window labeled "Test" permits choice of one a number of graphics primitive tests, including Points, Segments, Lines, Arcs and Filled Arcs, 8-bit Text and Image Text, Rectangles and Filled Rectangles, Image draws, as well as Copy Plane and Copy Area. the way that list just keeps going π we love an overachiever.
The window to the right of this has buttons which permit record/playback of the primitives rendered. π¬ literally a whole cinema in there.
πΈ OPTIONS πΈ
- xgc accepts all of the standard X Toolkit command line options. that's the entire option section bestie, we're not gatekeeping anything π
π X DEFAULTS π
This program accepts the usual defaults for toolkit applications. β¨
π§ ENVIRONMENT π§
DISPLAYβ to get the default host and display number.XENVIRONMENTβ to get the name of a resource file that overrides the global resources stored in theRESOURCE_MANAGERproperty.
π SEE ALSO π
π BUGS π
This program isn't really finished yet, but it probably never will be, since it only demonstrates the original X11 core protocol rendering operations, which few modern programs use anymore.
not me reading this and feeling genuinely emotional π she's a legacy icon and she's staying exactly how she is, periodt.
π AUTHORS π
Dan Schmidt, MIT β thank you for your service π«‘π
and that's the whole page bestie!! this one's from X Version 11, it's xgc 1.0.6, and it's been living here in the General Commands Manual the whole time waiting for you to press "Run" πβ¨ bye ily π¦
π¦ where this page comes from
- debian trixie: x11-apps 7.7+11+b1
- opensuse-leap 16.0: xgc 1.0.6-bp160.1.12 Β· MIT
- opensuse-leap 16.0: xgc 1.0.6-bp160.1.12 Β· MIT
- opensuse-leap 16.0: xgc 1.0.6-bp160.1.12 Β· MIT
- opensuse-leap 16.0: xgc 1.0.6-bp160.1.12 Β· MIT
- ubuntu noble: x11-apps 7.7+11build3
- ubuntu questing: x11-apps 7.7+11build3
- ubuntu resolute: x11-apps 7.7+11build4
- ubuntu stonking: x11-apps 7.7+11build4
- Copyright (c) 1991 X Consortium
- Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms