You can use ' the ' or 'a ' since it is only a title. Using ' a ' just implies that ' there is a painter painting at sea '. ' the ' refers to this particular painter painting at sea.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.