XGC(1)

πŸ“¦
version 7.7+11build4 Β· 3 versions
, in debian trixie, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 Chord or 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 with LineStyle of DoubleDash, and filling with FillStyle of OpaqueStippled.
  • 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 the RESOURCE_MANAGER property.

πŸ‘‘ 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