svg

package
v0.0.0-...-24a203d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 2 Imported by: 0

README

SVG package for simple svg manipulation for examples

Don't expect much of it. It is not idiomatic Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Obj

type Obj interface {
	HTML() *vecty.HTML
}

type Rect

type Rect struct {
	// contains filtered or unexported fields
}

func NewRect

func NewRect(color string, coordx, coordy, height, width int) Rect

func (Rect) HTML

func (o Rect) HTML() *vecty.HTML

type SVG

type SVG struct {
	vecty.Core
	Height, Width int
	// contains filtered or unexported fields
}

func (*SVG) Add

func (s *SVG) Add(objs ...Obj)

func (*SVG) Render

func (s *SVG) Render() vecty.ComponentOrHTML

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL