parameterize by index.

This commit is contained in:
Will Charczuk 2017-04-19 15:27:31 -07:00
parent cee1a66a50
commit 0cbbd0887a
3 changed files with 5 additions and 5 deletions

View file

@ -37,10 +37,10 @@ type FullBoundedValueProvider interface {
}
// SizeProvider is a provider for integer size.
type SizeProvider func(xrange, yrange Range, x, y float64) float64
type SizeProvider func(xrange, yrange Range, index int, x, y float64) float64
// ColorProvider is a general provider for color ranges based on values.
type ColorProvider func(v, vmin, vmax float64) drawing.Color
// DotColorProvider is a provider for dot color.
type DotColorProvider func(xrange, yrange Range, x, y float64) drawing.Color
type DotColorProvider func(xrange, yrange Range, index int, x, y float64) drawing.Color