Documentation ¶
Index ¶
- func New(opts ...Option) icon.Generator
- type Option
- func BackgroundColor(color *colorful.Color) Option
- func Code(code code.Generator) Option
- func DrawCore(draw bool) Option
- func ForegroundColor(color color.Generator) Option
- func RingWidth(height uint) Option
- func Rings(rings uint) Option
- func Segments(segments uint) Option
- func TransparentBackground() Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(g *generator)
Option represents an option which may be passed to New in order to adjust the default settings of the generator.
func BackgroundColor ¶
func BackgroundColor(color *colorful.Color) Option
BackgroundColor selects the color of the background rectangle of the resulting image.
func Code ¶
Code selects the code generator which shall be used to create a seed code from input values.
func ForegroundColor ¶
ForegroundColor selects a generator which decides the color which is to be applied to the entire image or its respective sections.
func TransparentBackground ¶
func TransparentBackground() Option
TransparentBackground disables the background coloring for the resulting image thus making it transparent where tiles did not draw geometry.
Click to show internal directories.
Click to hide internal directories.