top

package
v0.0.0-...-625399c Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filename

func Filename(name string, seasonID, week int, team string) string

func IsAvailable

func IsAvailable(colorScheme string, name string, seasonID, week int, team string) bool

Types

type DataSet

type DataSet struct {
	Title string
	Icons string
	Rows  []DataSetRow
}

type DataSetRow

type DataSetRow struct {
	Driver       string
	Value        string
	Icon         string
	IconPosition int
	Marked       bool
}

type Top

type Top struct {
	ColorScheme  string
	Team         string
	Name         string
	Season       database.Season
	Week         database.RaceWeek
	Track        database.Track
	Data         []DataSet
	BorderSize   float64
	FooterHeight float64
	ImageHeight  float64
	ImageWidth   float64
	HeaderHeight float64
	DriverHeight float64
	PaddingSize  float64
	Columns      float64
	ColumnWidth  float64
}

func New

func New(colorScheme, team, name string, season database.Season, week database.RaceWeek, track database.Track, data []DataSet) Top

func (*Top) Draw

func (t *Top) Draw(headerless bool) error

func (*Top) Filename

func (t *Top) Filename() string

func (*Top) MetadataFilename

func (t *Top) MetadataFilename() string

func (*Top) ReadMetadata

func (t *Top) ReadMetadata() (meta image.Metadata)

func (*Top) WriteMetadata

func (t *Top) WriteMetadata() error

Jump to

Keyboard shortcuts

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