We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm having a hard time trying to display points pseudo-randomly on the screen using Perlin noise. Ideally I would like those points to form small clusters as they get close to each other (higher density). Quite like the dark areas of a texture generated by noise.
Do you have an idea how I could do that ?
My failed attempt:
def setup(): size(800, 600) background(255) t = 0 for x in range(0, width, 10): for y in range(0, height, 10): t += .001 p = PVector(x, y) n = map(noise(p.x + t, p.y + t), 0, 1, 0, 10) p.mult(n) strokeWeight(2) point(p.x, p.y)
Please note that I'm writing in Python here but the question is open to everyone and any help (ideas, suggestions, Java code) is welcomed.