LightingConfig constructor
LightingConfig({})
Implementation
LightingConfig({
required this.radius,
required this.color,
this.withPulse = false,
this.useComponentAngle = false,
this.pulseCurve = Curves.decelerate,
this.pulseVariation = 0.1,
this.pulseSpeed = 1,
this.blurBorder = 20,
this.type = LightingType.circle,
Vector2? align,
}) : align = align ?? Vector2.zero() {
_pulseAnimation = PulseValue(speed: pulseSpeed, curve: pulseCurve);
_blurSigma = _convertRadiusToSigma(blurBorder);
}