Noob: coloring the face of a cube

I Know I’m totally new at this and it probably is a stupid question :expressionless: ,but here it comes:

How do I simply add a color to a face within a script?

Something with NMCol i think, but what is the exact code to do it?

The face is callled “f2”
It should be white.

Could anyone help me with the code?
I’ve been looking all over, can’t find any usefull examples.


scroll down and you will see a python on how to do vertex color for a triangle. Hope this helps