Extracting pigments and testing indicator