We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I read reference and the forum but couldn't manage to outline a text in Processing 3.1.1.
For example take:
void setup(){
size(800,800);
}
void draw(){
stroke(360);
strokeWeight(1);
fill(0);
textSize(30);
text("test",200,200);
}
won't return an outlined text. How can I achieve that? Thanks in advance for hints or answers.
Answers
I think you need a library
http://www.generative-gestaltung.de/P_3_2_1_01
but it's not easy at all....
Processing does not use the stroke to outline fonts so you have to use the generative library suggested by Chrisir
Great wee bit of code TFGuy!
Yes, very neat effect.
Here's a 10 second loop, zooming in on / scaling up @TfGuy 's outlined text trick so that you can see it render at multiple sizes:
This demo is a bit jittery, but you can see that the outlining works really well even at high font sizes. If you wanted to scale these borders up as well and make them thicker you would need to also parameterize the for loop -- and the number of
text()
draws would increase accordingly.