Adjust blur

This commit is contained in:
Isaac 2023-11-27 19:20:22 +04:00
parent 92043f0241
commit c2c042ea48
2 changed files with 3 additions and 2 deletions

View file

@ -600,7 +600,8 @@ public final class PeerAvatarBottomShadowNode: ASDisplayNode {
return UIColor(white: 1.0, alpha: 1.0).cgColor
} else {
let step: CGFloat = CGFloat(i - firstStep) / CGFloat(numSteps - firstStep - 1)
return UIColor(white: 1.0, alpha: baseGradientAlpha * (1.0 - pow(step, 3.0))).cgColor
let value: CGFloat = 1.0 - bezierPoint(0.42, 0.0, 0.58, 1.0, step)
return UIColor(white: 1.0, alpha: baseGradientAlpha * value).cgColor
}
}
self.backgroundGradientMaskLayer.locations = (0 ..< numSteps).map { i -> NSNumber in