''' RainbowFlag.py Author: Alan Richmond, Python3.codes https://en.wikipedia.org/wiki/Rainbow_flag_(LGBT_movement) ''' import pygame cols = ['#ff0000','#ff8000','#ffff00','#008000','#0000ff','#a000c0'] w, h = 1000, 618 # width, height y = h/6 # width per stripe d = pygame.display.set_mode((w,h)) for i, c in enumerate(cols): d.fill(pygame.Color(c),rect=(0,i*y,w,y*(i+1))) pygame.display.flip() pygame.image.save(d,'RainbowFlag.png')
The rainbow flag, commonly known as the gay pride flag or LGBT pride flag, is a symbol of lesbian, gay, bisexual and transgender (LGBT) pride and LGBT social movements. Other older uses of rainbow flags include a symbol of peace and the colors reflect the diversity of the LGBT community, as the flag is often used as a symbol of gay pride during LGBT rights marches. While this use of the rainbow flag originated in Northern California’s San Francisco Bay Area, the flag is now used worldwide.
Originally devised by San Francisco artists Gilbert Baker and Lynn Segerblom, the design has undergone several revisions since its debut in 1978, first to remove colors then restore them based on availability of fabrics. The most common variant consists of six stripes: red, orange, yellow, green, blue, and violet. The flag is typically flown horizontally, with the red stripe on top, as it would be in a natural rainbow.