histo

package
v0.0.0-...-414057b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: Unlicense Imports: 3 Imported by: 0

Documentation

Overview

Package histo implements a histogram with persistent save and load features.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max(v Histo) (max float64)

Max finds the highest value in the histogram. Used for color scaling algorithms.

func Save

func Save(vs ...Histo) (err error)

Save saves histograms to a gob file for future re-rendering.

Types

type Histo

type Histo [][]float64

Histo is a histogram of buddhabrot orbits.

func Load

func Load() (r, g, b Histo, err error)

Load loads a previously calculated histogram file for re-rendering.

func Merge

func Merge(a, b Histo) (Histo, error)

func New

func New(width, height int) Histo

New creates a histogram for an image of width * height.

Jump to

Keyboard shortcuts

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