readopacityfunctionfromfile and readcolorfunctionfromfile