avyos.dev/pkg/graphics/svg

package svg

Package Overview

No package-level documentation is provided.

Export GroupCount
Constants0
Variables1
Functions0
Types5

Variables

var (
	ColorTransparent = core.ColorTransparent
	NewBuffer        = core.NewBuffer
)

Types

Buffer

type Buffer = core.Buffer

Functions

func Decode(path string, reqSize int, opts Options) (*Buffer, error)

Decode decodes and rasterizes SVG using an in-tree parser/rasterizer.

Color

type Color = core.Color

Options

type Options struct {
	TextFace    *TextFace
	DecodeImage func(path string, reqSize int) (*Buffer, error)
}

Rect

type Rect = core.Rect

TextFace

type TextFace struct {
	Width  int
	Height int
	Glyphs map[rune][]byte
}