ColorCubeGenerator: replace deprecated functions.