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
   Programs
(Moderators: fry, REAS)
   scaling and translate a text of char
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: scaling and translate a text of char  (Read 388 times)
minhnodda


scaling and translate a text of char
« on: Jan 26th, 2005, 9:02pm »

how the heck can i get the only a text bigger and not the  rest ( like a rect) and i want the color of the text changed.  
and i dont get the translate thing.
so
 
char time;
BFont phrase;
void setup()
{
phrase= loadFont("..");
textFont(phrase);
}
 
void loop()
{
translate(0,0);
text(time,20,20);
rect(x,y,10,10);
}
 
so what about changing the color of the font and not the rect
 
eskimoblood

222550793222550793 WWW
Re: scaling and translate a text of char
« Reply #1 on: Jan 26th, 2005, 10:50pm »

To change the textsize use textSize(size). The textcolor can be changed by the fill() methode. But it will change the fillcolor of the rect too. So you must write
 
fill(0);
rect(10,10,50,50);
fill(255);
text(time,10,10);
 
Pages: 1 

« Previous topic | Next topic »