Separation of DotColorProvider and ColorProvider Interfaces (#34)
* fully functioning Viridis * pure functions
This commit is contained in:
parent
e53554fb04
commit
b3dc3fef3c
7 changed files with 18 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue