patterns

package
v0.0.0-...-bab53d0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PatternNames

func PatternNames() []string

Types

type Fleur

type Fleur struct {
	// contains filtered or unexported fields
}

func NewFleur

func NewFleur() *Fleur

func (*Fleur) DefinePattern

func (p *Fleur) DefinePattern(width int, height int, canvas *svg.SVG)

func (*Fleur) Name

func (p *Fleur) Name() string

func (*Fleur) Style

func (p *Fleur) Style(color string, offsetX int, offsetY int) string

type FlowerAndStem

type FlowerAndStem struct {
	// contains filtered or unexported fields
}

func NewFlowerAndStem

func NewFlowerAndStem() *FlowerAndStem

func (*FlowerAndStem) DefinePattern

func (p *FlowerAndStem) DefinePattern(width int, height int, canvas *svg.SVG)

func (*FlowerAndStem) Name

func (p *FlowerAndStem) Name() string

func (*FlowerAndStem) Style

func (p *FlowerAndStem) Style(color string, offsetX int, offsetY int) string

type Jigsaw

type Jigsaw struct {
	// contains filtered or unexported fields
}

func NewJigsaw

func NewJigsaw() *Jigsaw

func (*Jigsaw) DefinePattern

func (p *Jigsaw) DefinePattern(width int, height int, canvas *svg.SVG)

func (*Jigsaw) Name

func (p *Jigsaw) Name() string

func (*Jigsaw) Style

func (p *Jigsaw) Style(color string, offsetX int, offsetY int) string

type Jupiter

type Jupiter struct {
	// contains filtered or unexported fields
}

func NewJupiter

func NewJupiter() *Jupiter

func (*Jupiter) DefinePattern

func (p *Jupiter) DefinePattern(width int, height int, canvas *svg.SVG)

func (*Jupiter) Name

func (p *Jupiter) Name() string

func (*Jupiter) Style

func (p *Jupiter) Style(color string, offsetX int, offsetY int) string

type Overcast

type Overcast struct {
	// contains filtered or unexported fields
}

func NewOvercast

func NewOvercast() *Overcast

func (*Overcast) DefinePattern

func (p *Overcast) DefinePattern(width int, height int, canvas *svg.SVG)

func (*Overcast) Name

func (p *Overcast) Name() string

func (*Overcast) Style

func (p *Overcast) Style(color string, offsetX int, offsetY int) string

type Pattern

type Pattern interface {
	Name() string
	DefinePattern(width int, height int, canvas *svg.SVG)
	Style(color string, offsetX int, offsetY int) string
}

func PatternNameToPattern

func PatternNameToPattern(name string) (Pattern, error)

type SCurve

type SCurve struct {
	// contains filtered or unexported fields
}

func NewSCurve

func NewSCurve() *SCurve

func (*SCurve) DefinePattern

func (p *SCurve) DefinePattern(width int, height int, canvas *svg.SVG)

func (*SCurve) Name

func (p *SCurve) Name() string

func (*SCurve) Style

func (p *SCurve) Style(color string, offsetX int, offsetY int) string

type SwirlyStem

type SwirlyStem struct {
	// contains filtered or unexported fields
}

func NewSwirlyStem

func NewSwirlyStem() *SwirlyStem

func (*SwirlyStem) DefinePattern

func (p *SwirlyStem) DefinePattern(width int, height int, canvas *svg.SVG)

func (*SwirlyStem) Name

func (p *SwirlyStem) Name() string

func (*SwirlyStem) Style

func (p *SwirlyStem) Style(color string, offsetX int, offsetY int) string

type YYY

type YYY struct {
	// contains filtered or unexported fields
}

func NewYYY

func NewYYY() *YYY

func (*YYY) DefinePattern

func (p *YYY) DefinePattern(width int, height int, canvas *svg.SVG)

func (*YYY) Name

func (p *YYY) Name() string

func (*YYY) Style

func (p *YYY) Style(color string, offsetX int, offsetY int) string

Jump to

Keyboard shortcuts

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