An open API service indexing awesome lists of open source software.

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.

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 BlogGradient

struct 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/)