gorsvg

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: BSD-2-Clause Imports: 8 Imported by: 1

README

gorsvg

Go bindings for librsvg (incomplete)

These are opinionated bindings and they expose an API to render simple SVGs (like icons) and set user stylesheets for those SVGs (like symbolic icons)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(reader io.Reader, w, h int) (image.Image, error)

Render a simple a svg to an image.Image

func DecodeWithCSS

func DecodeWithCSS(reader io.Reader, w, h int, css string) (image.Image, error)

For applying custom CSS

func DecodeWithColor

func DecodeWithColor(reader io.Reader, w, h int, c color.Color) (image.Image, error)

For tinting symbolic icons

Types

This section is empty.

Jump to

Keyboard shortcuts

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