# Creating text with different colors in single actor

**URL:** https://discourse.vtk.org/t/creating-text-with-different-colors-in-single-actor/9690
**Category:** Support
**Created:** [October 28, 2022, 6:30pm UTC](https://discourse.vtk.org/t/creating-text-with-different-colors-in-single-actor/9690 "2022-10-28T18:30:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![leon1122](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@leon1122](https://discourse.vtk.org/u/leon1122)
#### Post date: [October 28, 2022, 6:30pm UTC](https://discourse.vtk.org/t/creating-text-with-different-colors-in-single-actor/9690/1 "2022-10-28T18:30:56Z")

</div>

I am trying to create a text actor using vtkTextActor and vtkTextProperty more or less as shown in [this example](https://kitware.github.io/vtk-examples/site/Cxx/GeometricObjects/TextActor/). Is there any way to make the words “Hello” and “World!” different colors without resorting to putting them in separate actors?
