Versions in this module Expand all Collapse all v1 v1.1.0 Oct 14, 2021 v1.0.0 Jun 21, 2021 Changes in this version + const MAX_PREV_FPS + func LoadPictureData(path string) (data *pixel.PictureData, err error) + func LoadSprite(path string) (sprite *pixel.Sprite, err error) + type IDGen struct + func NewIDGen() *IDGen + func (gen *IDGen) Gen() (id int) + type Ticker struct + func NewTicker(targetFPS int64) *Ticker + func NewTickerV(targetFPS, maxPrevFPS int64) *Ticker + func (ticker *Ticker) Reset() + func (ticker *Ticker) SetTargetFPS(target int64) + func (ticker *Ticker) Tick() (deltat, framerate float64) + func (ticker *Ticker) Wait() + func (ticker Ticker) AvgFramerate() float64 + func (ticker Ticker) Deltat() float64 + func (ticker Ticker) Framerate() float64 + func (ticker Ticker) PrevFramerates() []float32 + func (ticker Ticker) TargetFrametime() time.Duration + type Voronoi struct + func NewVoronoi() (v *Voronoi) + func (v *Voronoi) Compute(boundingBox pixel.Rect, closeCells bool) VoronoiCellMap + func (v *Voronoi) Insert(id interface{}, pos pixel.Vec) + type VoronoiCell struct + Halfedges []pixel.Line + ID interface{} + Site pixel.Vec + type VoronoiCellMap map[interface{}]VoronoiCell