LightingConfig constructor

LightingConfig({
  1. required double radius,
  2. required Color color,
  3. bool withPulse = false,
  4. bool useComponentAngle = false,
  5. Curve pulseCurve = Curves.decelerate,
  6. double pulseVariation = 0.1,
  7. double pulseSpeed = 1,
  8. double blurBorder = 20,
  9. LightingType type = LightingType.circle,
  10. Vector2? align,
})

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,
}) : this.align = align ?? Vector2.zero() {
  _pulseAnimation = PulseValue(speed: pulseSpeed, curve: pulseCurve);
  _blurSigma = _convertRadiusToSigma(blurBorder);
}