media

package
v0.0.0-...-e8051b5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("resource not found")

Functions

func ConvertSVGStringToPNG

func ConvertSVGStringToPNG(svg string, w, h int) (image.Image, error)

func CustomizeSnakeSVG

func CustomizeSnakeSVG(svg string, c color.Color, flipHorizontal bool) string

CustomizeSnakeSVG sets the fill colour for the outer SVG tag and optionally flips it horizontally.

func GetHeadPNG

func GetHeadPNG(id string, w, h int, c color.Color) (image.Image, error)

func GetHeadSVG

func GetHeadSVG(id string) (string, error)

func GetTailPNG

func GetTailPNG(id string, w, h int, c color.Color) (image.Image, error)

func GetTailSVG

func GetTailSVG(id string) (string, error)

func GetWatermarkPNG

func GetWatermarkPNG(w, h int) (image.Image, error)

GetWatermarkPNG gets the watermark asset, scaled to the requested width/height

Types

This section is empty.

Jump to

Keyboard shortcuts

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