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/nt/svg/v0

Package
Open in gnoweb ↗

Overview

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

Files (5)

  • gnomod.tomltoml
  • doc.gnogno
  • svg.gnogno
  • z0_filetest.gnogno
  • z1_filetest.gnogno
z0_filetest.gnogno
1// PKGPATH: gno.land/r/test2package test34import "gno.land/p/nt/svg/v0"56func main() {7	canvas := svg.Canvas{Width: 500, Height: 500}8	canvas.Append(9		svg.Rectangle{X: 50, Y: 50, Width: 100, Height: 100, Fill: "red"},10		svg.Circle{CX: 100, CY: 100, R: 50, Fill: "blue"},11		svg.Text{X: 100, Y: 100, Text: "hello world!", Fill: "magenta"},12	)13	canvas.Append(14		svg.NewCircle(100, 100, 50, "blue").WithClass("toto"),15	)16	println(canvas)17}1819// Output:20// <svg xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox=""><rect x="50" y="50" width="100" height="100" rx="0" ry="0" fill="red" /><circle cx="100" cy="100" r="50" fill="blue" /><text x="100" y="100" dx="0" dy="0" rotate="" fill="magenta" >hello world!</text><circle cx="100" cy="100" r="50" fill="blue" class="toto"/></svg>21

Functions

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

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