I have done this chart with letters but what I really want yo do its a cloud with hundred of letters disorganized around the screen. How could I do something like that?
Thanks
size(1000,1000);
background(255);
for (int x = 0; x < 1000; x += 30) {
for (int y = 0; y < 1000; y += 30) {
char c = 33;
c += random(93);
fill(random(256), random(256), random(256));
textSize(28);
text(c,x,y);
}
}
So I have tried with this code but I don’t know how to make distribution more heterogéneos everywhere on the screen
float u = 0;
float v = 0;
float w = 0;
size(1000,1000);
background(255);
for (int x = 0; x < 1000; x += 30) {
for (int y = 0; y < 1000; y += 30) {
u = u + 0.1;
v = v + 0.11;
w = w + 0.1;
float n = noise(u) * width;
float m = noise(v) * width;
float l = noise(x/100.0,y/100.0)*10;
strokeWeight(l);
//translate(600,600);
//rotate(PI/2.0);
char c = 33;
c += random(93);
fill(random(256), random(256), random(256));
text(c,n,m);
if(random(1)>0.5) {
textSize(random(20,40));
}
else{
strokeWeight(10);
}
}
}
Changing the x and y increase inside the loop I can get some interesting effect, but how could I fill all the screen with letters?
float u = 0;
float v = 0;
size(1000,1000);
background(255);
for (int x = 0; x < 1000; x += 30) {
for (int y = 0; y < 1000; y += 90) {
u = u + 0.1;
v = v + 0.11;
float n = noise(u) * width;
float m = noise(v) * width;
//translate(600,600);
//rotate(PI/2.0);
char c = 33;
c += random(93);
fill(random(256), random(256), random(256));
text(c,n,m);
if(random(1)>0.5) {
textSize(random(20,40));
}
else{
strokeWeight(10);
}
}
}
I think @mnse ‘s suggestion is a good place to start if you’re looking for an all-over distribution.
And then to achieve the overlapping and density use the createGraphics function to create multiple layers.
Just for clarity what do you mean by homogeneous?
The example you showed has basically an all over distribution.
With the exception of two lighter areas.
You could also use probability to target areas that you want your letterforms to appear as well.
Ok.
And I think I understand why you might use noise.
However, I also think using noise limits your options and potentially closes other avenues worth exploring.
Like I said before, consider @mnse 's circle packing approach as step one.
Then using createGraphics, you can stack layers and control the all-over density.
I Will try to explore that, but I really don’t know if I Will able to understand It with my level. I am starting to use noise and as I beguinner I can not do all the things that I want, but I guess that make that cloud bigger has to be possible. Maybe is too much for this topic, but I Will try to make another tomorrow focused on that.