It should be possible to create a Cairo image surface from an ndarray-like data structure using the [create-for-data](https://cairographics.org/manual/cairo-Image-Surfaces.html#cairo-image-surface-create-for-data) method, like [what PyCairo does](https://pycairo.readthedocs.io/en/latest/integration.html). See also: - https://www.reddit.com/r/Zig/comments/kl9djd/im_still_confused_about_multidimensional_arrays/