169
170
if style['stroke'] and style['stroke'] != 'none' and style['stroke'][0:3] != 'url':
170
171
rgb = simplestyle.parseColor(style['stroke'])
171
172
hsl = coloreffect.ColorEffect.rgb_to_hsl(coloreffect.ColorEffect(),rgb[0]/255.0,rgb[1]/255.0,rgb[2]/255.0)
172
174
self.color = 7 # default is black
174
176
self.color = 1 + (int(6*hsl[0] + 0.5) % 6) # use 6 hues