# canvas Pure package `gno.land/p/g19t6f4f4ptt3m949jznalfsx2h8aj696llul0nj/canvas/v0`: a fixed-size grid of palette indexes with lazy per-row allocation, plus the `x,y,color;...` batch codec. Used by the realm `gno.land/r/g19t6f4f4ptt3m949jznalfsx2h8aj696llul0nj/million/v0`, which adds pricing and access control. The package itself holds no chain state and has no chain imports, so it is fully covered by plain unit tests (`gno test .`). - `New(width, height)`: empty canvas, sides between 1 and 10000. - `Set(Pixel)`, `Get(x, y)`, `Check(Pixel)`: paint, read, validate. - `Rows(from, to)`: rows as one hex digit per pixel, no separators. - `ParsePixels`, `Encode`, `ParseColor`: the batch format. - `Palette`: 16 CSS colors, index 0 being "never painted".