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

  • Set up to allow only drawing on it (green)
  • It should also be able to do this with rectangles of scissors.
    1. Lower half of the text
    2. 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

    Popular posts from this blog

    mysql - BLOB/TEXT column 'value' used in key specification without a key length -

    c# - Using Vici cool Storage with monodroid -

    python - referencing a variable in another function? -