pattern

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package pattern implements methods to generate a new pattern background for the pattern, type of pattern and particular SVG structure for that pattern

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pattern

type Pattern struct {
	BaseColor string
	Color     string
	Generator string
	Hash      string
	Svg       *svg.SVG
}

Pattern struct that contains attributes like base color, background color pattern type, phrase for the pattern and SHA-1 hash of phrase

func New

func New(args map[string]string) *Pattern

New parses the arguments and returns an instance of Pattern struct that has linked methods to work further things

func (*Pattern) SvgStr

func (p *Pattern) SvgStr() string

SvgStr returns string representing pattern's SVG string

Jump to

Keyboard shortcuts

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