Noise
Generate random smooth cloudy noise.
Install
Swift Package
.package(url: "https://github.com/heestand-xyz/Noise", from: "1.0.0")
Import Package
import SwiftUI
import Noise
struct ContentView: View {
var body: some View {
Noise()
}
}
struct ContentView: View {
var body: some View {
Noise(smoothness: 1.0)
}
}
struct ContentView: View {
var body: some View {
Noise(smoothness: nil)
}
}
struct ContentView: View {
var body: some View {
Noise(smoothness: 0.75)
.foregroundColors()
}
}
struct ContentView: View {
var body: some View {
ZStack {
Color.black
Noise(smoothness: 0.5)
.foregroundColor(.red)
Noise(smoothness: 1.0)
.foregroundColor(.yellow)
.seed(2)
}
}
}
struct ContentView: View {
var body: some View {
Noise(smoothness: 1.0, speed: 1.0)
}
}
Graphics Powered by PixelKit
Original Noise by Eliot Eshelman