ArticleslgStudy

computer science

GrafX2

GrafX2 is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand GrafX2 rather than just read about it. In short: GrafX2 is a bitmap graphics editor inspired by the Amiga programs Deluxe Paint and Brilliance. It is free software and distributed under the GPL-2.0-only license.

GrafX2 — main illustration
GrafX2 — illustration

Key takeaways

  • GrafX2 belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect GrafX2 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of GrafX2 from memory before moving on to harder problems.

Reference excerpt

GrafX2 is a bitmap graphics editor inspired by the Amiga programs Deluxe Paint and Brilliance. It is free software and distributed under the GPL-2.0-only license.

History GrafX2 was an MS-DOS program developed by Sunset Design from 1996 to 2001 . It was distributed as freeware, and was one of the most used graphics editor in the demoscene. The development stopped due the lack of time of the developers. So they released the source code under the GPL-2.0-only license. A Windows port was done by the Eclipse demogroup and presented at the State of the art party in 2004, but the source code for this version does not seem to be available anywhere. In 2007, a project was started to port the source code from the original MS-DOS version to the Simple DirectMedia Layer library. The goal was to provide a pixel art editing tool for Linux, but SDL also allowed easy ports to many other platforms, including Windows. The project development continued on this new version to add the features missing from the original open source release and the first Windows port.

Features What made GrafX2 interesting when it was released in 1996 was the ability to display pictures in most of the resolutions available on Amiga. This allowed the use of the program as a picture viewer for PC users. This was done by low-level programming of the video card, using X-Modes combined with VESA settings. The SDL port generally runs on platforms which use high resolution screens, so it can use software scaling to emulate low resolutions. The scaling options include several non-square pixels, this allows editing of pictures for displaying on old 16- or 8-bit microcomputers, which have such video modes. All the versions of the program are designed for drawing in indexed color mode, up to 256 colors. A palette editor allows very precise operations on the image and its palette. These functions are precious for console or mobile game graphics where some specific color indices in the palette are required for special effects: Palette swap, Color cycling, transparent color for sprites. The user interface is mouse-driven with a toolbar for common tools, and some modal dialog windows. For increased productivity with frequently used functions, an extensive system of keyboard shortcuts is available. The user can split the editing area in two : normal size on the left, zoomed-in view on the right. Drawing in the zoomed area allows finer mouse control. The basic drawing concepts are clearly inspired by Deluxe Paint, they involve :

a brush : It's one of the built-in monochrome shape, or a piece of colored bitmap grabbed by the user. The brush appears 'stuck' under the mouse cursor, it gives an accurate preview. a tool that pastes the brush on the image at several places : Freehand drawing, straight line, circle, curve, airbrush... optionally, a number of Effects that change the way pixels are drawn: For example, the Shade mode ignores the brush color, it lightens or darkens the picture depending on the mouse button used (and depending on user-defined color ranges). Some of the effects are classic for a 24-bit RGB drawing program (Transparency, Smoothing, Smearing), but their effectiveness in GrafX2 is limited according to the colors pre-defined in the palette. The SDL port currently runs on a lot of computer systems, tested on common systems such as Linux, FreeBSD, Windows, MacOS, and on less common ones such as AmigaOS 3.x on 68k, AmigaOS 4.0 on PPC, BeOS and Haiku, MorphOS on PPC, AROS on x86, SkyOS, Atari MiNT on Atari Falcon030 and Atari TT. It is even ported on the Handheld game console GP2X, and the Windows version can be used on MS-DOS thru HX DOS Extender.

File formats PKM (Sunset Design) (This is a custom format used only by GrafX2. It was done in the first version as an easy way to save pictures, before the GIF format was managed perfectly.) BMP (Microsoft, BMP file format) CEL, KCF (K.O.S. Kisekae Set System) GIF (Compuserve) IMG (Bivas) LBM (Electronic Arts) (Support for files from Deluxe Paint, but also a lot of Amiga paint programs) PAL PCX PC Paintbrush (Z-Soft) PI1, PC1 (Degas Elite) PNG (Portable Network Graphics) (only in the Windows and SDL ports) SCx (Colorix) NEO (NeoChrome) C64 picture formats (Koala Painter, CDU-Paint, FLI, etc.) CPC picture formats (PPH, CM5, etc.) JPEG (only loading) TGA (Truevision TGA only loading) TIFF (Aldus Corporation) RECOIL can be used to load a lot of native file formats of vintage computers.

See also

List of raster graphics editors Comparison of raster graphics editors Pixel art

References

Further reading Benjaminsson, Klas (2019). "Pixel Programs". The Masters of Pixel Art. Vol. 3: Contemporary Pixel Art. Nicepixel Publications. ISBN 9789151935393.

External links Official website source code git repository Linux packages: Debian, Ubuntu DOS version on pouet.net

Illustrations

GrafX2 illustration
GrafX2 illustration

Worked examples

Example 1 — a first encounter with GrafX2

Start with the simplest possible case. Write down what GrafX2 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to GrafX2 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about GrafX2 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of GrafX2

In research
GrafX2 appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses GrafX2 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
GrafX2 is common in secondary-school and first-year university syllabi. It links to neighbouring topics Amiga software, BeOS software, Computer art, so understanding it makes those chapters shorter.
In everyday life
Look for GrafX2 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “GrafX2” →

How to study GrafX2 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what GrafX2 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain GrafX2 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is GrafX2 in simple terms?

GrafX2 is a bitmap graphics editor inspired by the Amiga programs Deluxe Paint and Brilliance. It is free software and distributed under the GPL-2.0-only license.

Why does GrafX2 matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study GrafX2?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on GrafX2.

Tags

  • Amiga software
  • BeOS software
  • Computer art
  • Demoscene software
  • Free raster graphics editors
  • Free software programmed in C
  • Free software that uses SDL
  • Lua (programming language)-scriptable software
  • Raster graphics editors for Linux
  • Software using the GNU General Public License

Keep exploring