“Simultaneous Contrast” application is also a color recognition exercise, like “Color Fades” presented in the page before. The difference being, the size and color change here is tied to the movement of the mouse over the application window.
When the mouse is moved up and down, the two colors change. The colors are always different from each other. When the mouse is moved right to left, the size of the square changes, highlighting the change from background to foreground. This movement of shape and color tied to the mouse can also be tied to any external input or output through openFrameworks.
Snapshot of code in openFrameworks