condition 2d array to colorcurve object