Try defining trichromatic so it isn't an anonymous function.