Find the color of love

This is part of the 2012 js1k competition Love The colors of the broken heart are changing on both parts until they match.

© floriaen - 2012