Using an Area Fill Element

Description

The area fill element is used to fill an area of the screen with colour. Because it receives input from the code regarding what colour should be displayed, it allows for dynamic colouring of an area.

Implementation in Table Realms IDE

To add a colour fill area, click on its icon in the right hand pane. The component will then be added to the layout.

After adding the fill area, the properties need to be changed in order for the component to appear on the aug. When setting the colour for the component, you can do it in one of two ways:

  1. Creating a colour setting function in a script, and calling it within the “Color” property pane.
  2. Directly setting the colour within the “Color” property pane using RGBA format, with values from 0 to 1. An example would be:

    Lua
    
    return {red = 0.3, blue = 0.6, green = 0.9, Alpha = 1}