Finished paint struct. Implemented paint_struct in code.

Not tested.