Skip to content

Instantly share code, notes, and snippets.

@jasonsturges
Last active December 26, 2020 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonsturges/98e922a0de3366178443105f5a1d1ba5 to your computer and use it in GitHub Desktop.
Save jasonsturges/98e922a0de3366178443105f5a1d1ba5 to your computer and use it in GitHub Desktop.
SpriteKit Procedurally Generated Noise
let noiseTexture = SKTexture(noiseWithSmoothness: 1.1,
size: CGSize(width: 1024, height: 768),
grayscale: false)
let noiseSprite = SKSpriteNode(texture: noiseTexture)
let noiseTexture = SKTexture(vectorNoiseWithSmoothness: 1.1,
size: CGSize(width: 1024, height: 768))
let noiseSprite = SKSpriteNode(texture: noiseTexture)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment