2D computer graphics
Computer-based generation of digital images from two-dimensional models.
Last updated
2D computer graphics involves creating digital images on a computer, primarily from two-dimensional sources like geometric shapes, text, and existing digital pictures, using methods designed for those sources. The term can describe either the computer science field that covers these methods or the models themselves. These graphics are common in applications that grew out of older printing and drawing practices, including typography, mapmaking, technical diagrams, and advertising. In these uses, the two-dimensional image is more than a copy of a real object; it’s a standalone item with its own meaning.
Direct painting
Two-dimensional models are often chosen over 3D graphics because they offer more direct control over the image, whereas 3D graphics work more like photography than typography. In fields like desktop publishing, engineering, and business, a document described with 2D graphics techniques can be much smaller than the equivalent digital image—sometimes less than a thousandth of the size. This approach is also more adaptable, as it can be rendered at different resolutions for different output devices.
Because of this, documents and illustrations are frequently stored or sent as 2D graphic files. The field began in the 1950s with vector graphics devices, which were later mostly replaced by raster-based devices. Key milestones include the PostScript language and the X Window System protocol. 2D graphics models can combine vector graphics (geometric models), raster graphics (digital images), text for typesetting (defined by content, font, style, size, color, position, and orientation), mathematical functions and equations, and other elements.
Background (geometry)
These parts can be changed using two-dimensional geometric transformations like translation, rotation, and scaling. In object-oriented graphics, an image is described indirectly by an object with its own rendering method—a procedure that uses an arbitrary algorithm to assign colors to pixels. Complex models can be built by combining simpler objects, following object-oriented programming principles. In Euclidean geometry, a translation moves every point by a constant distance in a fixed direction.
It’s a rigid motion, along with rotations and reflections. A translation can also be seen as adding a constant vector to every point or shifting the coordinate system’s origin. A translation operator \( T_{\mathbf{\delta}} \) is defined so that \( T_{\mathbf{\delta}} f(\mathbf{v}) = f(\mathbf{v} + \mathbf{\delta}) \). If v is a fixed vector, the translation \( T_v \) works as \( T_v(p) = p + v \).
If T is a translation, the image of a subset A under T is the translation of A by T, often written as A + v. In a Euclidean space, every translation is an isometry. The set of all translations forms the translation group T, which is isomorphic to the space itself and is a normal subgroup of the Euclidean group E(n).
Translation
The quotient group E(n) / T is isomorphic to the orthogonal group O(n): E(n) / T ≅ O(n). Since a translation is an affine transformation but not a linear one, homogeneous coordinates are typically used to represent the translation operator as a matrix, making it linear. A 3-dimensional vector w = (w_x, w_y, w_z) is written in homogeneous coordinates as w = (w_x, w_y, w_z, 1). To translate an object by a vector v, each homogeneous vector p is multiplied by this translation matrix: \[ T_{\mathbf{v}} = \begin{bmatrix} 1 & 0 & 0 & v_x \\ 0 & 1 & 0 & v_y \\ 0 & 0 & 1 & v_z \\ 0 & 0 & 0 & 1 \end{bmatrix} \] As shown, the multiplication yields the translated result.
Quick Facts
- Field
- Computer graphics
- Started
- 1950s
- Key developments
- PostScript language, X Window System protocol
Facts from the source article.
Lore & Background
2D computer graphics started in the 1950s, based on vector graphics devices, which were largely supplanted by raster-based devices in the following decades. Landmark developments in the field include the PostScript language and the X Window System protocol. 2D graphics models may combine geometric models (vector graphics), digital images (raster graphics), text to be typeset, mathematical functions and equations, and more. These components can be modified by two-dimensional geometric transformations such as translation, rotation, and scaling.
Reader's Guide
2D computer graphics are significant because they provide more direct control of the image than 3D computer graphics, making them preferred in applications like desktop publishing, engineering, and business. This representation is also more flexible, which is why documents and illustrations are often stored or transmitted as 2D graphic files. In object-oriented graphics, the image is described indirectly by an object with a self-rendering method, allowing complex models to be built by combining simpler objects in the paradigms of object-oriented programming. The field's legacy includes enabling efficient, resolution-independent storage and transmission of visual information, foundational to modern printing, cartography, and user interfaces.
Frequently Asked Questions
What is 2D computer graphics known for?
Its core capability is converting two-dimensional models into digital images through vector and raster techniques. It underpins typography, cartography, technical drawing, and advertising—any domain where flat visual content must be generated digitally.
When did 2D computer graphics debut?
The field traces its origins to the 1950s, when early computer systems first began rendering two-dimensional visual output. Subsequent key developments—most notably the PostScript language and the X Window System protocol—later cemented its place in mainstream computing.
More in Design & Digital Arts
Sources
Compiled from Wikipedia and the sources listed below. Text from Wikipedia is available under CC BY-SA 4.0; this entry is adapted from it.
- Wikipedia: 2D computer graphics (CC BY-SA 4.0).
Spotted an error? Know more?
Reader corrections go straight into our review queue. Suggest an edit · How this site is sourced
