Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 139 - 2615_KEC
P. 139

    SETTING BACKGROUND

                     You can apply the background of your app. Options include:
                       Choosing a solid colour background
                       Using an image as a background

                       Dynamically changing backgrounds using code
                     Follow the steps above to customize the sprite, then apply the background using the steps
                     below:
                     Step  1   Select the screen from UI controls blocks and drag the setScreen block below the
                             code.

                     Step  2   Select the property block from UI controls and set the screen1, background-color,
                             blue.
                     Step  3  Click on Run button.

                               UNDERSTANDING VARIABLES

                     A variable is a storage unit that holds data. In App Lab, variables are used to store user
                     input, numbers or text. A variable's value can be updated at any time, allowing dynamic
                     changes in the program. Variables help manage data, perform calculations and track
                     user interactions.

                                                                             Designing User Interfaces and Simulating Data  137

| 134 135 136 137 138 139 140 141 142 143 144 |