def _get_mark(self):
"""color of the glyph box in the font view. This accepts a 6 hex digit number.
XXX the FL implementation accepts a
"""
import colorsys
r = (self._object.color&0xff0000)>>16
g = (self._object.color&0xff00)>>8
g = (self._object.color&0xff)>>4
return colorsys.rgb_to_hsv( r, g, b)[0]
评论列表
文章目录