Simple timer

This chapter will teach us how to change the color of the display every second.

Begin by looking for the "loop forever" block in the "Loops" block section. 



To change the color of the screen, we'll need the "fill frame with..." and "push frame" blocks from the "Display" block section. 



Let's pause for 1 second and then change the color of the screen again.

For the pause, look for the time block labeled "sleep 1 seconds"



Now, we'll change the color of the screen into red. 



You can play with as many colors you want!



After finishing the code, click on the Run button, and check the colors changing.