Now with blue sky with clouds! 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.
Original coding belongs to @DangerNoodle851 who is definitely not me at all no no way hahahaha. I just tweaked it to make white clouds on a blue background.