You'd just need to change the draw colour before drawing the l¡ne (taking care of storing the previous value and restoring it later, just as this code does with line width).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was just wondering if anyone knew how to change the color of the <hr /> tag in TCPDF?
I have tried tampering with the code and have come up with no solution.
This is the piece of code where <hr> is generated:
You'd just need to change the draw colour before drawing the l¡ne (taking care of storing the previous value and restoring it later, just as this code does with line width).