The sunset bit doesn't really work too well but try it if you want ig This isn't perfect Perlin Noise, obviously, real Perlin noise is more cloudy and blotchy looking. The way that scratch-type coding works (at least as far as I've figured out) means that each pixel can only know about the pixels that come before it, not the ones after it, so the cloudy patterns will naturally be more linear. The idea behind Perlin Noise is that it's sort of controlled randomness. Each pixel has a value within a certain ratio of the values of the pixels around it. The Perlin Noise algorithm has been used to make cloudy background scenes for some movies, I think maybe one of the early Godzilla movies? I don't really know. There are probably some better, more accurate Perlin Noise generators out there, do some research and find them. I have noticed that although my generator isn't necessarily very good at blotchy clouds, it's pretty good at linear clouds and sunsets and stuff.
My favorite value for smooth clouds is -3. Not sure why but it works really well. All code by me, @DangerNoodle851. Please do not steal, claim, copy without credit, etc. Inspired by a project my dad was working on for NaNoGenMo. I give the right for anyone who uses this project to use any images generated with my project for non-commercial use only, with proper credit only.