parameterize by index.
This commit is contained in:
parent
cee1a66a50
commit
0cbbd0887a
3 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue