PortalLVAM / metodos.py
bullm's picture
new test
518c3a9
raw
history blame
860 Bytes
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 29 15:28:55 2020
@author: ASUS
"""
def colores_corporativos(colors=None):
diccionario = {'red': (204, 0, 51),
'light_blue': (110, 162, 201),
'gray': (66, 74, 82),
'light_green': (122, 178, 153),
'yellow': (195, 195, 9),
'dark_purple': (119, 28, 95),
'blue': (42, 83, 113),
'purple': (159, 37, 127),
'light_yellow': (252, 252, 196),
'green': (55, 95, 77),
'light_gray': (135, 146, 158)}
for key in diccionario:
diccionario[key] = tuple(v/255 for v in diccionario[key])
if colors is None:
return diccionario
else:
aux = {col: diccionario[col] for col in colors}
return aux