draw

package
v0.0.0-...-d2770bb Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Png

func Png(p *Poster)

Types

type Poster

type Poster struct {
	// image file name
	File string `json:"-"`
	// imag size
	Width  int `json:"-"`
	Height int `json:"-"`
	// text title
	Title string `json:"-"`
	X0    int
	Y0    int
	Size0 float64
	// sub title
	SubTitle string `json:"-"`
	X1       int
	Y1       int
	Size1    float64
	//
	SubCurrentDate string `json:"-"`
	X2             int
	Y2             int
	Size2          float64
	//
	SubDateDesc string `json:"-"`
	X3          int
	Y3          int
	Size3       float64
	// title of date
	SubDate1 string `json:"-"`
	X4       int
	Y4       int
	Size4    float64
	SubDate2 string `json:"-"`
	X5       int
	Y5       int
	Size5    float64
	// text context
	// only 46 max on rows
	Rows  int `json:"-"`
	Size6 float64
	Y6    int
}

Jump to

Keyboard shortcuts

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