https://github.com/teodorszeltins/blob-gradient
A SwiftUI and Metal package for bautiful animated blob gradients.
https://github.com/teodorszeltins/blob-gradient
gradients metal swift swiftui
Last synced: 6 months ago
JSON representation
A SwiftUI and Metal package for bautiful animated blob gradients.
- Host: GitHub
- URL: https://github.com/teodorszeltins/blob-gradient
- Owner: teodorszeltins
- License: mit
- Created: 2025-01-28T14:53:05.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-04T14:51:03.000Z (8 months ago)
- Last Synced: 2025-04-16T06:35:56.557Z (6 months ago)
- Topics: gradients, metal, swift, swiftui
- Language: Swift
- Homepage:
- Size: 13.1 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
A SwiftUI and Metal package for bautiful animated blob gradients.
## Preview
## Usage
Install the BlobGradient package using Swift Package Manager:
```
https://github.com/teodorszeltins/blob-gradient
```Place `BlobGradientView` in your app:
```swiftui
import SwiftUI
import BlogGradientstruct ContentView: View {
var body: some View {
BlobGradientView(
colors: [.blue, .pink, .yellow, .green],
blur: 100, // optional, defaults to 100
duration: 10.0 // optional, defaults to 10.0
)
.background(.green)
}
}```
## Why?
Who doesn't love a gradient? I use these in my projects. I got the original idea from [FluidGradient](https://github.com/Cindori/FluidGradient/), but it was made in CoreAnimaiton while this is Metal.
## Credit
- [FluidGradient](https://github.com/Cindori/FluidGradient/)