drawstring - XNA SpriteFont with multiple colors? -
Is there a way to create a text with multiple horizontal areas? As an example, I want to draw the text "Hello" with the lower half of the red and the green upper part. The text should be dynamic to use. With normal texture, I will only use the Draw method and will pass a textangan to attract some parts of texture in different colors?
The best way would probably be to include custom shaders
- Lower half of the text
- Normally draw the text using your blank color (red). The top half should be cut so that the green text should be there.
To clarify, your text should be drawn both times in one place.
Comments
Post a Comment