Drag the red and blue dots. the line will move and dots above will be green, and those below will be blue.
I was fooling around in desmos, figured I could try coding this in scratch.