Home About Random
from ipythonblocks import BlockGrid
# Flat UI colors: http://flatuicolors.com/
top_colors = [(231, 76, 60), (230, 126, 34), (241, 196, 15), (46, 204, 113), 
              (26, 188, 156), (52, 152, 219), (155, 89, 182)]
bot_colors = [(192, 57, 43), (211, 84, 0), (243, 156, 18), (39, 174, 96),
              (22, 160, 133), (41, 128, 185), (142, 68, 173)]
grid = BlockGrid(7, 2, block_size=100)

for i, (tc, bc) in enumerate(zip(top_colors, bot_colors)):
    grid[0, i] = tc
    grid[1, i] = bc

grid.show()