shadow and outline a text
in
Programming Questions
•
3 years ago
Hi!
I have two needs : be able to draw shadowed or outlined text.
first time on a buffer (PImage or PGraphics?), where I add "blur" effect + translation
second time without effect.
Maybe you know a faster solution? Does anybody have a code doing that? (to save time)
I imagine that I can draw the letters one by one, two times each (size+2px at (x-1,y+1) and then size at (x,y), it means calculate the spacing between each letter...
I think it's a bad solution: slow and without any possibility to use text-align and other useful text processing functions...
Who can help me with a good solution?
thanks a lot :)
I have two needs : be able to draw shadowed or outlined text.
- Shadow
first time on a buffer (PImage or PGraphics?), where I add "blur" effect + translation
second time without effect.
Maybe you know a faster solution? Does anybody have a code doing that? (to save time)
- Outline
I imagine that I can draw the letters one by one, two times each (size+2px at (x-1,y+1) and then size at (x,y), it means calculate the spacing between each letter...
I think it's a bad solution: slow and without any possibility to use text-align and other useful text processing functions...
Who can help me with a good solution?
thanks a lot :)
1