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 sourcecode under the GNU GPL license. A Windows port was done by the Eclipse demogroup and presented at the State of the art party in 2004, but the sourcecode for this version does not seem to be available anywhere. In 2007, a project was started to port the sourcecode from the original MS-DOS version to the Simple DirectMedia Layer library. The goal was to provide a pixel art editing tool for GNU/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 opensource release and the first Windows port.
Features and specificities
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. Some of the effects are classic for a 24bit RGB drawing program, but their effectiveness in GrafX2 is limited according to the colors pre-defined in the palette.
The first release of GrafX2 was done at the Wired 96demoparty. The tool was primarily made for demomakers. This explains the presence of features specific to old computers, because demosceners often use this kind of hardware. Today, the program is mostly used for Pixel art, not necessarily in relation to demos or to old and limited hardware.