add compute color function fix #64