SHARE
TWEET

nicechart_colors.py

a guest Oct 2nd, 2012 53 Never
  1.  
  2. red     =["#460101","#980101","#d40000","#f44800","#fb8b00","#eec73e","#d9bb7a","#fdd99b"]
  3. blue    =["#000442","#0F1781","#252FB7","#3A45E1","#656DDE","#8A91EC"]
  4. gray    =["#222222","#444444","#666666","#888888","#aaaaaa","#cccccc","#eeeeee"]
  5. contrast=["#0000FF","#FF0000","#00FF00","#CF9100","#FF00FF","#00FFFF"]
  6.  
  7. default=red
  8.  
  9. table={
  10. "default":default,
  11. "red":red,
  12. "blue":blue,
  13. "gray":gray,
  14. "contrast":contrast
  15. }
  16.  
  17.  
  18. def get_color_scheme(name="default"):
  19.         try:
  20.                 returnval=table[name.lower()]
  21.         except:
  22.                 returnval=default
  23.        
  24.         return returnval
RAW Paste Data
Top