pattern

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2015 License: MIT Imports: 7 Imported by: 11

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

View Source
var PATTERNS = [16]string{
	"chevrons",
	"concentric-circles",
	"diamonds",
	"hexagons",
	"mosaic-squares",
	"nested-squares",
	"octagons",
	"overlapping-circles",
	"overlapping-rings",
	"plaid",
	"plus-signs",
	"sine-waves",
	"squares",
	"tessellation",
	"triangles",
	"xes",
}

All available geo patterns

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 added in v1.4.0

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