Skip to content

Instantly share code, notes, and snippets.

@heestand-xyz
Last active March 12, 2019 12:42
Show Gist options
  • Save heestand-xyz/229f6439fe87e85b9cea9f8d9db630d9 to your computer and use it in GitHub Desktop.
Save heestand-xyz/229f6439fe87e85b9cea9f8d9db630d9 to your computer and use it in GitHub Desktop.
Pixels - Circle Feed
let circlePix = CirclePIX(res: ._1024)
circlePix.radius = 1 / 3
let noisePix = NoisePIX(res: ._1024)
noisePix.zPosition = .live / 10
noisePix.octaves = 3
noisePix.colored = true
let dispPix = circlePix._edge()._displace(with: noisePix, distance: 0.1)
let finalPix = dispPix._feedAdd() / 100
finalPix.delegate = self
view.addSubview(finalPix.view)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment