Diffusion is the process by which particles spread from a region of higher concentration to a region of lower concentration and can be influenced by temperature. This study aims to analyze the effect of temperature on the spreading rate of food coloring in water using Python. The research employed an experimental method with three temperature variations: 0°C, 27°C, and 50°C. Observations were conducted for 120 seconds at 10-second intervals. The captured images were processed using Python to determine the spreading area and diameter of the food coloring. The spreading rate was calculated based on the change in spreading area over time. The results showed that the spreading rates at temperatures of 0°C, 27°C, and 50°C were 0.0849 cm²/s, 0.0795 cm²/s, and 0.0883 cm²/s, respectively. The highest spreading rate was observed at 50°C, while the lowest was recorded at 27°C. These results indicate that the spreading rate did not increase consistently with increasing temperature. Therefore, image analysis using Python can help quantitatively measure changes in food coloring spread under different temperature conditions.
Copyrights © 2026