Generate random smooth cloudy noise.
.package(url: "https://github.com/heestand-xyz/Noise", from: "2.0.0")
import SwiftUI
import Noise
struct ContentView: View {
var body: some View {
Noise(style: .noisy)
.monochrome()
}
}
struct ContentView: View {
var body: some View {
Noise(style: .smooth)
.monochrome()
.brightness(1.5)
}
}
struct ContentView: View {
var body: some View {
Noise(style: .random)
.monochrome()
}
}
struct ContentView: View {
var body: some View {
Noise(style: .custom(octaves: 4))
.brightness(1.5)
}
}
struct ContentView: View {
var body: some View {
ZStack {
Color.black
Noise(style: .custom(octaves: 5))
.monochrome()
.tint(.red)
Noise(style: .smooth)
.monochrome()
.tint(.yellow)
.seed(2)
.blendMode(.screen)
}
}
}
struct ContentView: View {
var body: some View {
Noise(style: .smooth, speed: 1.0)
.monochrome()
}
}
Graphics Powered by SwiftUI Metal Shaders
Original Noise by Eliot Eshelman