2026-09-22 14:44 UTC
huh, just using a random perlin noise for each rgb channel already creates nice things
Replies (1)
-
@cqql@tech.lgbt 2026-09-22 14:46
import noise from PIL import Image size = (1000, 1000) scale = 2 image = Image.new('RGB', size) for x in range(image.width): print(noise.pnoise3(x/image.width * scale, 0/image.height * scale, -0.5)) for y in range(image.height): r = int(noise.pnoise3(x/image.width * scale, y/image.height * scale, -0.5)*255) + 128 g = int(noise.pnoise3(x/image.width * scale, y/image.height * scale, 0.0)*255) + 128 b = int(noise.pnoise3(x/image.width * scale, y/image.height * scale, 0.5)*255) + 128 image.putpixel((x,y), (r, g, b)) image.save('perlin.png')