Vector Graphics
Images described as shapes and curves rather than a grid of pixels, so they stay sharp at any size, the basis of fonts, icons, logos, and maps.
Vector graphics describe an image as a set of geometric shapes: points, lines, Bézier Curve segments, and the fills and strokes applied to them. Raster graphics, or bitmaps, describe an image as a fixed grid of colored pixels. A vector circle is stored as a center and a radius. A raster circle is stored as whichever pixels happen to fall inside it. The difference decides what each is good for.
Vectors are resolution independent. Because the shapes are mathematical, they can be redrawn at any size, from a phone icon to a billboard, without losing sharpness. Scale a raster image up and the pixels show as blocks or blur. Vectors are also usually small for simple artwork and easy to edit, since every shape remains a separate object.
Their history starts with Ivan Sutherland's Sketchpad (1963), which let a user draw and manipulate shapes on a screen with a light pen. Early displays were sometimes vector hardware too: the electron beam traced lines directly instead of scanning a grid, giving arcade games such as Asteroids (1979) their glowing, razor-sharp outlines, which are notoriously hard to reproduce through Emulation on modern raster screens.
Vector formats are everywhere:
- Fonts. Every typeface is a set of vector outlines, so text stays crisp at any size and weight, including in Variable Fonts.
- Documents. PostScript and PDF describe pages as vector shapes and text.
- The web. SVG, standardized by the W3C in 2001, is the format for icons, logos, charts, and illustrations that must look sharp on any screen and adapt to Dark Mode through CSS. It can be inlined or served as images, and unlike photographs it doesn't need the multiple sizes of Responsive Images.
- Maps and design. Modern map tiles ship vector data drawn on the device, and illustration and interface design tools are built around vector editing.
Vectors are poor at photographs and natural textures, where detail doesn't reduce to clean shapes. They also have a cost at display time: every screen today is a pixel grid, so vector art must be converted to pixels through Rasterization, with care to avoid jagged edges and Aliasing. Complex vector artwork can be slower to draw than a ready-made bitmap.
The line between the two has blurred. A Signed Distance Field stores shapes in a texture as distances to the nearest edge, letting games render text and icons with near-vector sharpness at any scale using a simple Shader. 3D graphics is fundamentally vector, built from triangles described by coordinates, until the final step turns it into pixels. A raster image scaled down needs Mipmapping or filtering to avoid shimmer, a problem vector art doesn't have.
See also2
Pixel
The smallest addressable element of a digital image or screen, better understood as a point sample than as a little square, whose physical form, shape and density vary enough between devices that the web had to invent a separate reference pixel.
Graphics & Rendering6 connections
Data URI
A URL that carries its content inside the address itself, used to embed small images in pages and stylesheets without a separate request, and abused for phishing until browsers restricted it.
Web Platform13 connections
Linked from10
- Bézier CurveGraphics & Rendering
The smooth curve defined by a handful of control points that underlies fonts, vector drawings, animation easing, and the pen tool in every design app.
- Data URIWeb Platform
A URL that carries its content inside the address itself, used to embed small images in pages and stylesheets without a separate request, and abused for phishing until browsers restricted it.
- FaviconWeb Platform
The tiny icon identifying a website in tabs, bookmarks, and search results, invented by Internet Explorer in 1999, now a set of sizes and formats, and once a surprising tracking channel.
- IconographyDesign & Interface
The design and use of small symbolic images in interfaces and signage, which are quick to recognize when familiar and surprisingly ambiguous when not.
- Image FormatWeb Platform
The file formats the web uses for pictures, from the GIF, JPEG, and PNG generation to newer formats derived from video codecs, and the slow, politics-laden process by which a new one becomes safe to use.
- Keyframe AnimationGraphics & Rendering
Animating by setting a few key poses and letting assistants or software fill in the frames between, the workflow of hand-drawn studios carried into every animation tool and CSS transition.
- PixelGraphics & Rendering
The smallest addressable element of a digital image or screen, better understood as a point sample than as a little square, whose physical form, shape and density vary enough between devices that the web had to invent a separate reference pixel.
- Signed Distance FieldGraphics & Rendering
A function giving the distance to the nearest surface, signed so inside and outside are distinguishable.
- Variable FontsDesign & Interface
A single font file that encodes a continuous design space, letting weight, width, and other axes be set to any value at runtime.
- XMLData & Content
The 1998 tag-based format for structured documents and data that once carried almost everything on the web and still underlies office files, feeds, and SVG, along with a set of well-known parser attacks.