I used the scratch extension "Face Sensing" to make this. Press the green flag, let scratch allow to see your camera (if you want) and put ur face in the screen.
I got this idea from scratch. I saw the extension and wanted to try it.