Skip to content

Commit 948dd9c

Browse files
updated blob color
1 parent bab08c0 commit 948dd9c

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

blob animation/blob animation/ContentView.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class MetalView: UIView {
5252

5353
private func setupMetal() {
5454
metalLayer = CAShapeLayer()
55-
metalLayer.fillColor = UIColor(white: 0.8, alpha: 1.0).cgColor
55+
metalLayer.fillColor = UIColor.white.cgColor
5656
metalLayer.shadowColor = UIColor.white.cgColor
5757
metalLayer.shadowOffset = .zero
5858
metalLayer.shadowRadius = 10
@@ -155,7 +155,7 @@ class MetalView: UIView {
155155
let animation = CABasicAnimation(keyPath: "fillColor")
156156
animation.fromValue = metalLayer.fillColor
157157
animation.toValue = UIColor(
158-
white: 0.7 + CGFloat.random(in: 0...0.2),
158+
white: 0.9 + CGFloat.random(in: 0...0.1),
159159
alpha: 1.0
160160
).cgColor
161161
animation.duration = 0.1

0 commit comments

Comments
 (0)