Just a wondering thought that I was interested in finding the answer too. And find questions are answered with more variety and depth than If I were to take this to Google. edit: grammar
hi! first, a plug for /r/vexillology, the flag sub, where you might find more information. not discouraging more answers here, but you might be interested in some previous related threads:
origins:
shape:
colour & pattern: there have been dozens of threads in this sub asking about colours (why stripes, why 3 stripes, why certain colours, why the white flag, why stars, why writing...); a few of the more common themes are included in the FAQ: