Hi!
Im trying to make camera moving on z axis (zooming in and out) so the text will be visible or not
So for example i have this text: 123 and when I zoom in i wont see it, I will just have some random letters, but when I zoom out i will have my text again
String [] abc = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"};
int n = 0;
void setup () {
size (1280, 720, P3D);
background(0);
camera(width/2.0, height/2.0, ((height/2.0) / tan(PI*30.0 / 180.0)) , width/2.0, height/2.0, 0, 0, 1, 0);
}
void draw () {
}
void mouseDragged () {
float r = random (0, 100);
textSize(32);
text (abc[int(random(0, 25))], mouseX, mouseY, r);
}
void keyPressed(){
if (key == '=') {
n ++;
} else if (key == '-') {
n --;
}
}