Seperating mesh quads based on colour coding

Thanks …

I opened this script.

It is using c# custom script. I have zero knowledge of c#. Any way to use native components or plugins to generate polylines based on colour fill of mesh?