1) This project will need to use your front-facing webcam so allow Scratch and your Web browser to access the camera if you have not done that already. 2) Make sure that things are not moving in your background. 3) Press the green flag and look at the screen as still as you can. Watch the cat slowly change its color. 4) After you move your head (shift your attention away from the camera), notice that the "my variable" viewer on the screen shows the time that you spent paying attention to the screen without moving your head (past the video motion threshold). 5) Change the video motion threshold (default value is 25) if you find that the program is not catching when you look away at something besides your computer. The few blocks present in this attention time test mini-project use a variable to capture the built in timer, which gets reset every time the green flag is pressed. The cat's color morphs slowly as time marches on.
This quick project is something I put together on a video call with the stemcees researchers, so that we can develop some ideas around attention tracking.