Documentation ¶
Index ¶
- Variables
- func ConvertSVGStringToPNG(svg string, w, h int) (image.Image, error)
- func CustomizeSnakeSVG(svg string, c color.Color, flipHorizontal bool) string
- func GetHeadPNG(id string, w, h int, c color.Color) (image.Image, error)
- func GetHeadSVG(id string) (string, error)
- func GetTailPNG(id string, w, h int, c color.Color) (image.Image, error)
- func GetTailSVG(id string) (string, error)
- func GetWatermarkPNG(w, h int) (image.Image, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("resource not found")
Functions ¶
func CustomizeSnakeSVG ¶
CustomizeSnakeSVG sets the fill colour for the outer SVG tag and optionally flips it horizontally.
func GetHeadSVG ¶
func GetTailSVG ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.