~openerp/openobject-server/web-dashboard

« back to all changes in this revision

Viewing changes to bin/report/misc.py

  • Committer: pinky
  • Date: 2006-12-07 13:41:40 UTC
  • Revision ID: pinky-3f10ee12cea3c4c75cef44ab04ad33ef47432907
New trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from pychart import *
 
2
 
 
3
colorline = [color.T(r=((r+3) % 11)/10.0,
 
4
                                         g=((g+6) % 11)/10.0,
 
5
                                         b=((b+9) % 11)/10.0)
 
6
                         for r in range(11) for g in range(11) for b in range(11)]
 
7
 
 
8
def choice_colors(n):
 
9
        if n:
 
10
                return colorline[0:-1:len(colorline)/n]
 
11
        return []
 
12
 
 
13
if __name__=='__main__':
 
14
        print choice_colors(10)