Page 25 - Touchcode_C7_Flipbook
P. 25
Step 5: From ‘Image’ select ‘draw rectangle in picture’ block, click on the drop-down
arrow and select ‘blueRect’. Change the coordinates of width to ‘32’, height to
‘50’ and color to ‘purple’. Drag and drop the block to ‘on start’ block.
Step 6: From ‘Variable’ select, ‘set showBlue to 0’ block. From ‘Sprite’ select ‘sprite of kind’
block, click on the dropdown and select ‘blueRect’. Drag ‘sprite of kind’ block to
‘set showBlue’ block and drop the block to ‘on start’ block.
Step 7: Click on the ‘on start’, or on the ‘Start the simulator’ button present on the left
hand side to view the output:
Well done, you have learned to draw a rectangle!
Sequencing with Block Coding 23

