We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I am writing a program, to show some text on gui screen and also able to change it time to time according to my requirement. Can you please guide on how do I print text on GUI screen.
PImage img;
void setup() {
size(448,299,P3D);
}
void draw() {
img=loadImage("imagei.jpg");
background(img);
}
Answers
Every time you call loadImage() in draw(), you cause the souls of a thousand dead programmers to scream out in agony.
1) Do your loadImage()ing ONCE, inside setup().
2) The function for doing text is text():
can you plz guide how do I make text bold and large?
see reference please, section Typography
https://www.processing.org/reference/
https://www.processing.org/reference/textSize_.html
I don't know bold, maybe when you load a font that is bold?
I don't want to install font, becuase it is already very slow on laptop.
https://www.processing.org/reference/loadFont_.html