painter

package
v0.0.0-...-4c19596 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CursorStore = "cursor.json"
View Source
const INSPIRATION_STORE = "inspiration.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtConfig

type ArtConfig struct {
	ImgUrl string `json:"iiif_url"`
}

type ArtWork

type ArtWork struct {
	Title  string `json:"title"`
	Artist string `json:"artist_title"`
	Id     string `json:"image_id"`
}

type Canvas

type Canvas interface {
	Draw(art, title, artist string) error
}

type Painter

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

func New

func New() *Painter

func (*Painter) GetInspiration

func (p *Painter) GetInspiration() error

func (*Painter) PaintOn

func (p *Painter) PaintOn(canvas Canvas) error

type Result

type Result struct {
	Manifest []ArtWork `json:"data"`
	Config   ArtConfig `json:"config"`
}

Jump to

Keyboard shortcuts

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