Hi, is it possible to draw text with different col...
# compose
m
Hi, is it possible to draw text with different colors combined on the same character? See the image for example. The use case is that I have letters/digits drawn around, on a
Surface
, but there are “moving particles” of different shapes and colors. Currently, my text has
onSurface
color, which not always has the best readability, due to the color of “movin particle” being too dark. Is there a way to do it? I’ve been thinking of creating a blue circle, then the white (or other suitable color) letter in the position, then somehow clipping the letter and atop of that drawing the dark “rest of the letter”, but it seems rather complicated. Thanks! (also, please excuse my artistic skills)
s
Not sure if portersuff would work, it might
At Worst the following might work Black text, blue circle, canvas clip to circle + white text
m
I will try that. Thanks
o
m
Wow, thank you!!
s
Yep, I achieved the exact same thing here
v
I feel like @Halil Ozercan probably has a demo somewhere that's doing something similar