paint_server: introduce PaintSource trait
Gradient and Pattern have a similar structure, so we make them implement a common PaintSource trait
Edited by Paolo Borelli
Gradient and Pattern have a similar structure, so we make them implement a common PaintSource trait