Page 127 - KEC Khaitan C5 Flipbook
P. 127
Step 7 Click on Run button to see the changes in the sprite position, size, and property.
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 125

