rangeRound method
Sets the scale’s range
to the specified list of values while also
setting the scale’s interpolate
to interpolateRound
.
This is a convenience method equivalent to:
continuous
..range = range
..interpolate = interpolateRound;
The rounding interpolator is sometimes useful for avoiding antialiasing artifacts, though also consider the shape-rendering “crispEdges” styles. Note that this interpolator can only be used with numeric ranges.
Implementation
void rangeRound(List<num> range) {
this
..range = range
..interpolate = interpolateRound;
_rescale();
}