factorAt method
- double distance
The factor the spot multiplies the channels by at distance pixels
from center.
Implementation
double factorAt(double distance) {
if (radius <= 0) return 1;
final r = distance / radius;
return 1 + gain * math.exp(-0.5 * r * r);
}