FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   text() and translate()
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: text() and translate()  (Read 296 times)
madmerv
Guest
Email
text() and translate()
« on: Nov 27th, 2003, 7:05pm »

At certain x,y,z coordinates using translate, I've noticed that if you place text, the text has the odd feature of stretching to infinite lengths; why is this?
 
And what are the constraints of translate and text (to filter the data)?
 
Ie:
  translate(x,y,z);
  text(char(((x+y+z)%(125-33))+33), x, y);  
 // usable range of ascii characters 33-125
 
Why are they all scaled and skewed and out of whack?
 
fry


WWW
Re: text() and translate()
« Reply #1 on: Dec 3rd, 2003, 10:39pm »

without looking at the actual code, i'm guessing that your z value is setting your text so that it's flying into the camera, and it's not getting properly clipped (the latter because of a incomplete part of the graphics engine).
 
see the note on coordinates:
http://proce55ing.net/reference/environment/index.html#Coordinates
 
Pages: 1 

« Previous topic | Next topic »