I think a simpler way to translate it would be "And how would one paint at night?"
Какой = what/what type/what kind
With the emphatic particle "же," it's putting emphasis on the "what?!" in response to the ludicrous action. "What kind of action...", in this case "painting at night." That's how I see it at least.