Copy MyPaint implementation of HCY.