For this exercise I first experimented with mouseX mouseY coordinates to create this pattern, the rectangles followed my cursor: Using this code: Then I ran this pattern, the square runs back and forth until bar turns solid white: Using this code: SVG: