Change text color in Canvas

Good day Ma'am/ Sir,

I'm new in this and I'm creating a MIT App that can connect ESP-32 Camera module to an Android device via a wifi connection. One of the conditions I set is that it could see the current time. The problem is that when its dark, the time cannot be seen so I want to turn the text into a red one. How can I implement this? The attached picture is the blocks I have made.

Hello,

you can use Canvas.PaintColor(red) before to draw the text.

Thanks sir. That helped me solved the problem:)