PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/g1v7s3j506wqul2zwt90awgjphpx4ztwga0926f7/canvas/v0

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
v0
Namespace
g1v7s3j506wqul2zwt90awgjphpx4ztwga0926f7 / canvas
Files
4 (README)(gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/g1v7s3j506wqul2zwt90awgjphpx4ztwga0926f7/canvas/v0
gno
0.9

Files (4)

  • README.mdmarkdown
  • gnomod.tomltoml
  • canvas.gnogno
  • canvas_test.gnogno
README.mdPreviewRaw
# canvas

Pure package `gno.land/p/g1v7s3j506wqul2zwt90awgjphpx4ztwga0926f7/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/g1v7s3j506wqul2zwt90awgjphpx4ztwga0926f7/gnodraw/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".

Functions

not supported for pure packages by the node (vm/qfuncs)

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.