github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/examples/gno.land/p/demo/svg/doc.gno (about)

     1  /*
     2  Package svg is a minimalist SVG generation library for Gno.
     3  
     4  The svg package provides a simple and lightweight solution for programmatically generating SVG (Scalable Vector Graphics) markup in Gno. It allows you to create basic shapes like rectangles and circles, and output the generated SVG to a
     5  
     6  Example:
     7  
     8  	import "gno.land/p/demo/svg""
     9  
    10  	func Foo() string {
    11  	    canvas := svg.Canvas{Width: 200, Height: 200}
    12  	    canvas.DrawRectangle(50, 50, 100, 100, "red")
    13  	    canvas.DrawCircle(100, 100, 50, "blue")
    14  	    return canvas.String()
    15  	}
    16  */
    17  package svg // import "gno.land/p/demo/svg"