ScalePow<Y> constructor
ScalePow<Y> ({})
Constructs a new pow scale with the specified domain
, range
and
interpolate
, the exponent
1, and clamp
ing disabled.
final x = ScalePow(
domain: [0, 100],
range: ["red", "blue"],
interpolate: interpolateRgb,
)..exponent = 2;
If domain
is not specified, it defaults to [0, 1].
Implementation
ScalePow(
{super.domain = const [0, 1],
required super.range,
required super.interpolate}) {
initPowish();
numberize(identity, identity);
}