favicon

package
v0.0.0-...-da01245 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomRGBA

func RandomRGBA() color.RGBA

RandomRGBA returns random coloder RGBA

Types

type Favicon

type Favicon struct {
	*image.RGBA
}

Favicon provides a rectangular random colored image that can be used as a favicon

func New

func New(options ...Option) *Favicon

New is a favicon constuctor

func (*Favicon) String

func (f *Favicon) String() string

String implements Stringer interface

type Option

type Option func(o *Options)

Option function type

func WithColor

func WithColor(c color.Color) Option

WithColor setting up a favicon with a specific color

func WithSize

func WithSize(width int, height int) Option

WithSize setting up a favicon with a specific size

type Options

type Options struct {
	Width  int
	Height int
	Color  color.Color
}

Options is favicon options

Jump to

Keyboard shortcuts

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