Gradient inside text
#6688
-
Is it possible to add a gradient to a text using Pillow? |
Beta Was this translation helpful? Give feedback.
Answered by
nulano
Oct 26, 2022
Replies: 1 comment 2 replies
-
Not directly. To add a gradient you would first generate an image of the gradient and a mask of the text using a font, then use the mask to paste the gradient onto the background image. Alternatively, you could use a font with embedded colors that is displayed using a gradient. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
hitblast
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not directly. To add a gradient you would first generate an image of the gradient and a mask of the text using a font, then use the mask to paste the gradient onto the background image.
Alternatively, you could use a font with embedded colors that is displayed using a gradient.