oval_ranking

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filename

func Filename(seasonID int, team string) string

func IsAvailable

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

Types

type DataRow

type DataRow struct {
	Driver string
	Value  string
	Marked bool
}

type Ranking

type Ranking struct {
	ColorScheme  string
	Team         string
	Season       database.Season
	ChampData    []DataRow
	BorderSize   float64
	FooterHeight float64
	ImageHeight  float64
	ImageWidth   float64
	HeaderHeight float64
	DriverHeight float64
	PaddingSize  float64
	ChampColumns float64
	TTColumns    float64
	ColumnWidth  float64
	Rows         float64
}

func New

func New(colorScheme, team string, season database.Season, champdata []DataRow) Ranking

func (*Ranking) Draw

func (r *Ranking) Draw(num, ofTotal int) error

func (*Ranking) Filename

func (r *Ranking) Filename() string

func (*Ranking) MetadataFilename

func (r *Ranking) MetadataFilename() string

func (*Ranking) ReadMetadata

func (r *Ranking) ReadMetadata() (meta image.Metadata)

func (*Ranking) WriteMetadata

func (r *Ranking) WriteMetadata() error

Jump to

Keyboard shortcuts

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