Heaps' 2D API (package `h2d`) defines a collection of classes for 2D graphics. The following sections cover its usage.