circle

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) icon.Generator

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

func Code(code code.Generator) Option

Code selects the code generator which shall be used to create a seed code from input values.

func DrawCore

func DrawCore(draw bool) Option

DrawCore identifies whether the image core shall be drawn in addition to the rings.

func ForegroundColor

func ForegroundColor(color color.Generator) Option

ForegroundColor selects a generator which decides the color which is to be applied to the entire image or its respective sections.

func RingWidth

func RingWidth(height uint) Option

RingWidth customizes the width of each ring.

func Rings

func Rings(rings uint) Option

Rings customizes the number of rings to draw within the image.

func Segments

func Segments(segments uint) Option

Segments customizes the number of segments to draw within the image.

func TransparentBackground

func TransparentBackground() Option

TransparentBackground disables the background coloring for the resulting image thus making it transparent where tiles did not draw geometry.

Jump to

Keyboard shortcuts

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