Documentation
¶
Overview ¶
Package penconfig allows custom specification of pen strokes from a yaml format file on a per-layer basis, for example
all:
- pen: fineliner
weight: narrow
width: 0.95
color: black
opacity: 0.9
"1":
- pen: fineliner
weight: narrow
width: 0.8
color: blue
opacity: 0.8
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LayerPenConfigs ¶
LayerPenConfigs defines StrokeSettings by layer
func LoadYaml ¶
func LoadYaml(yamlByte []byte) (LayerPenConfigs, error)
LoadYaml reads bytes into a PenConfig structure
func NewPenConfigFromFile ¶
func NewPenConfigFromFile(filePath string) (lpc LayerPenConfigs, err error)
NewPenConfigFromFile loads a pen configuration yaml file
type LocalPenColour ¶
LocalPenColour describes a color by name and RGBA value
type PenConfig ¶
type PenConfig struct {
Pen string `yaml:"pen"`
Weight string `yaml:"weight"`
Width float64 `yaml:"width"`
Colour LocalPenColour `yaml:"color"`
Opacity float64 `yaml:"opacity"`
}
PenConfig allows the configuration of a s
Click to show internal directories.
Click to hide internal directories.