I'm making a Pygame library to easily create UI elements and I want to implement multicolored text. I know that I can do this by having multiple text objects but that's pretty unoptimized and I want to know if there's a better way i can do this?
Edit: To make it clearer, i mean something like [RED]this text has to be red[/RED]
For anyone looking this up:
There sadly is no way to have multi-colored text in pygame as stated by @Rabbid76. You'll have to make it yourself
Multi-Colored text in pygame