To change the color of the text displayed by a TEXT Sprite, use the set.color block. SHAPES Toolkit - Scroll down to SHAPE SETTINGS - Use the set.color block. To see what colors you can use, miss spell a color name in the set.color block and the error message will give you a link to the color chart.

# # SHAPES Tookkit - Scroll down to SHAPE SETTINGS # Set Color block sprite = codesters.Text("Hello World!") sprite.set_color("red")
  • Run Code
  • Show Console
  • Codesters How To (opens in a new tab)