Skip to content

Commit

Permalink
updated blob color
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelikesdesign committed Jan 4, 2025
1 parent bab08c0 commit 948dd9c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions blob animation/blob animation/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MetalView: UIView {

private func setupMetal() {
metalLayer = CAShapeLayer()
metalLayer.fillColor = UIColor(white: 0.8, alpha: 1.0).cgColor
metalLayer.fillColor = UIColor.white.cgColor
metalLayer.shadowColor = UIColor.white.cgColor
metalLayer.shadowOffset = .zero
metalLayer.shadowRadius = 10
Expand Down Expand Up @@ -155,7 +155,7 @@ class MetalView: UIView {
let animation = CABasicAnimation(keyPath: "fillColor")
animation.fromValue = metalLayer.fillColor
animation.toValue = UIColor(
white: 0.7 + CGFloat.random(in: 0...0.2),
white: 0.9 + CGFloat.random(in: 0...0.1),
alpha: 1.0
).cgColor
animation.duration = 0.1
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 948dd9c

Please sign in to comment.