WolframLang: Graphics Primitives

By Xah Lee. Date: . Last updated: .

Graphics Primitive

some graphics primitives are 2D (e.g. Circle, Disk, Rectangle), some are 3D (e.g. Sphere, Cuboid, Tube), some both (e.g. Point, Line, Polygon).

2D Graphics Primitives

and more

3D Graphics Primitives

Complete list at SymbolicGraphicsLanguage

Graphics primitives are symbolic. By themselves they do nothing.

Line[{{0, 0}, {2, 1}}]
WolframLang Line 2022-02-09 4kgq

Graphics primitive usually are bundled together in a list. e.g.

{Line[arg], Line[arg], Polygon[arg], etc}

Displaying Graphics Primitives

To display graphics primitives, put them inside the functions Graphics or Graphics3D.

Graphics[Line[{{0, 0}, {2, 1}}]]
WolframLang Graphics 2022-02-09 f3D4

Graphics3D[Cuboid[{0, 0, 0}, {1, 2, 1}], Axes -> True]
Cuboid 2022-02-09 5g87
Cuboid 2022-02-09 5g87

Graphics3D[Table[Cuboid[{x, x, x}, {x, x, x} + 1], {x, 0, 5}], Axes -> True]
WolframLang cubes 2022-02-09 mJgr

WolframLang, Graphics Programing