There are two types of computer graphics: raster graphics, which use mathematical formulas to draw lines and shapes, which are then interpreted by the viewer to produce the graphic, and vector graphics, which use mathematical formulas to draw lines and shapes, which are then interpreted by the viewer to produce the graphic.