Documentation ¶
Index ¶
- Variables
- func ColorFromHex(hex string) (*color.RGBA, error)
- func ColorToHex(c color.Color) string
- func IconPath(letter string, size string, colr *color.RGBA, format string) string
- func MainLetterFromURL(URL string) string
- func ParseIconPath(fullpath string) (string, *color.RGBA, int, string)
- func RGBToHSV(c color.Color) (h, s, v float64)
- func RenderPNG(letter string, bgColor color.Color, width int, out io.Writer) error
- func RenderSVG(letter string, bgColor color.Color, out io.Writer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultBackgroundColor *color.RGBA
Functions ¶
func ColorToHex ¶
ColorToHex returns the #rrggbb hex string for a color
func MainLetterFromURL ¶
func ParseIconPath ¶
path is like: lettericons/M-144-EFC25D.png
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.