encodeArtwork method
Returns the original PNG when available, otherwise renders the mask.
Implementation
Uint8List encodeArtwork(PuzzleArtwork artwork) =>
artwork.sourcePng ??
/// Renders a logical grid as one PNG pixel per cell.
encodePng(artwork.solution, palette: artwork.palette);