Package-level declarations
Types
The tile of a ShapeStyle.Hatch: a square of spacing pixels that, laid side by side, makes the lines, the cross or the dots run on without a seam (every distance is measured to the nearest line of the repeating pattern, so what leaves one edge comes back in at the opposite one). The lines are anti-aliased over one pixel. Pure Kotlin, like the rest of this package.
Turns "this picture, fitted this way into this shape" into pixels: the picture placed in the shape's bounding box and cut to the shape (anti-aliased), everything outside it transparent. The result is meant to be laid on the globe over exactly that box, where latitude and longitude are linear in the pixel grid. Pure Kotlin so it behaves the same on every target and is testable without a map.
An ImageFillRasterizer result: the picture, and the geographic box its edges correspond to.