Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Avatar ¶ added in v0.3.0
type Avatar struct {
// contains filtered or unexported fields
}
Avatar that was generated using specified seed.
func (*Avatar) Image ¶ added in v0.3.0
func (a *Avatar) Image(opts ...RenderOption) (image.Image, error)
Image rendered from the SVG.
type Option ¶ added in v0.2.0
type Option interface {
// contains filtered or unexported methods
}
Option is a function that applies an option to the avatar service.
type RenderOption ¶ added in v0.3.0
type RenderOption interface {
// contains filtered or unexported methods
}
Render is a function that applies a render option to the avatar service.
type RenderOptions ¶ added in v0.3.0
type RenderOptions struct { // Size of the rendered avatar. Size int // Padding between the rendered avatar and the border. Padding int }
RenderOptions is a set of options for rendering an avatar.
type RenderPadding ¶ added in v0.3.0
type RenderPadding int
RenderPadding sets the padding between the rendered avatar and the border.
type RenderSize ¶ added in v0.2.0
type RenderSize int
RenderSize sets the size of the rendered avatar in pixels.
Click to show internal directories.
Click to hide internal directories.