gopaint

package module
v0.0.0-...-7368617 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 9 Imported by: 0

README

go-paint

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveImage

func SaveImage(img image.Image, outputPath string) (err error)

Types

type MaskConfig

type MaskConfig struct {
	Path  string `json:"path"`
	Color string `json:"color"`
}

type PaintConfig

type PaintConfig struct {
	Template string       `json:"template"`
	Masks    []MaskConfig `json:"masks"`
}

func ReadConfigFile

func ReadConfigFile(path string) (config PaintConfig, err error)

type Painter

type Painter struct {
	Config PaintConfig
}

func NewPainterFromConfigFile

func NewPainterFromConfigFile(configPath string) (p Painter, err error)

func (*Painter) Paint

func (p *Painter) Paint() (canva *image.RGBA, err error)

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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