which noiseDetail() setting makes the output more smooth?
What inputs are you giving your noise function?
well i use it as 2d noise, and as inputs i just go through all the coordinates of my screen.
like this
You are using Integer division for this. Take a look at this code:
int i=5;
//Integer division
println(i/300);
//Float division
println((float)i/300);
Using int division will automaticly cut the digits after the comma. So it will only give ints to the noise.
You should definally scale down the inputs of your function. Take a look at this code for example:
size(300,300);
background(255);
for(int i=0;i<width;i++) point(i,noise((float)i/100)*height);
but the results still look the same now.
i was going for bigger “clouds” of randomness
like this
Try this code:
void setup() {
size(300, 300);
loadPixels();
for (int i=0; i<width*height; i++)
pixels[i]=color(map(noise((float)(i%width)/100, (float)(i/width)/100), 0, 1, 0, 255));
updatePixels();
}
Here I scaled down the inputs for the noise function.
still basically the same. is this not possible with noiseDetail()?
edit: sorry, it works now. thanks again