[Machine] Regarding prayer, continue performing it until you see it become white like a washed cloth. Then, when you see that, you should perform ablution and pray. If you see it turn yellow or cloudy after that, then perform ablution and pray. However, if you see it turn red like blood, then perform full ablution and pray.
عَنِ الصَّلَاةِ حَتَّى تَرَاهُ أَبْيَضَ كَالْقِصَّةِ فَإِذَا رَأَتْ ذَلِكَ فَلْتَغْتَسِلْ وَلْتُصَلِّ فَإِذَا رَأَتْ بَعْدَ ذَلِكَ صُفْرَةً أَوْ كَدِرَّةً فَلْتَتَوَضَّأْ وَلْتُصَلِّ فَإِذَا رَأَتْ دَمًا أَحْمَرَ فَلْتَغْتَسِلْ وَلْتُصَلِّ