def __init__(self):
self.ctr = 0
self.joiner = u'\n\t\t\t'
self.header = u'\t\t<CropObjectClass>'
self.footer = u'</CropObjectClass>'
self.default_color = u'#FF6060'
self.color_RGB = (1.0, 0.4, 0.4) # Used for output
self.color_HSV = colorsys.rgb_to_hsv(*self.color_RGB) # Used internally
self.delta_hue = 0.017
self.delta_hue_group = 0.37
#: Each group has its own list of colors. Their starts
# are separated by self.delta_hue_group. The last member
# of each group_colordict value is the next color for that
# group.
self.group_colordict = collections.OrderedDict()
评论列表
文章目录