Set text colour () with background ()

Introduction

The Set text colour () with background () is found under the Robotics palette in the extension evive TFT display. This block sets a text colour (choose from drop down) and a particular background colour (choose from drop down) for the text.

This block is only works for Arduino mode.
Set text colour () with background ()
Set text colour () with background ()

Example

  • In this script, we initially colour the screen black. We then adjust the position of the cursor and then we use this block. Execute and upload; you will see the text – “Hello World” displayed in blue.
  • In this example we are changing the colour of the text and writing “Hello World” at three different locations on the TFT display.