heatmap

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, week int) string

func IsAvailable

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

Types

type Heatmap

type Heatmap struct {
	ColorScheme    string
	Season         database.Season
	Week           database.RaceWeek
	Track          database.Track
	Results        []database.RaceWeekResult
	BorderSize     float64
	FooterHeight   float64
	ImageHeight    float64
	ImageWidth     float64
	HeaderHeight   float64
	TimeslotHeight float64
	DayWidth       float64
	Days           int
}

func New

func New(colorScheme string, season database.Season, week database.RaceWeek, track database.Track, results []database.RaceWeekResult) Heatmap

func (*Heatmap) Draw

func (h *Heatmap) Draw(minSOF, maxSOF int, drawEmptySlots bool) error

func (*Heatmap) Filename

func (h *Heatmap) Filename() string

func (*Heatmap) MetadataFilename

func (h *Heatmap) MetadataFilename() string

func (*Heatmap) ReadMetadata

func (h *Heatmap) ReadMetadata() (meta image.Metadata)

func (*Heatmap) WriteMetadata

func (h *Heatmap) WriteMetadata() error

Jump to

Keyboard shortcuts

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