Separation of DotColorProvider and ColorProvider Interfaces (#34)

* fully functioning Viridis

* pure functions
This commit is contained in:
Chris Redford 2017-04-17 16:21:02 -07:00 committed by Will Charczuk
parent e53554fb04
commit b3dc3fef3c
7 changed files with 18 additions and 13 deletions

View file

@ -39,5 +39,8 @@ type FullBoundedValueProvider interface {
// SizeProvider is a provider for integer size.
type SizeProvider func(xrange, yrange Range, x, y float64) float64
// ColorProvider is a provider for dot size.
type ColorProvider func(xrange, yrange Range, x, y float64) drawing.Color
// 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