// How it should look fill(0); rect(10,10,180,380); fill(255); smooth(); text("This is a Test!", 20, 200);
// Want it to look like above, but doesn't pg.beginDraw(); pg.fill(0); pg.rect(10,10,180,380); pg.fill(255); pg.smooth(); pg.text("This is a Test!", 20, 200); pg.endDraw();
image(pg, 210, 10); }
Why it's so important to buffer the text before drawign it, is that in my original program I need to draw every single character on by one as I am doing a wordwrap combined with styling code in the string. Drawing it out directly is very slow, using buffering is very quick.... but ugly...
inside my source. And yes, JAVA2D is pretty clear, but still not as sharp and clean as the unbuffered solution. Is there another way to keep text-operations fast but cleaner? Is it worth doing the rendering 2x bigger and scaling it down?
Leave a comment on me_sohcahtoa's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic