def __init__(self, view, point, target_color, convert, allowed_colors, use_hex_argb):

        self.convert_rgb = False
        self.convert_hsl = False
        self.convert_hwb = False
        self.convert_gray = False
        self.allowed_colors = allowed_colors
        self.alpha = None
        self.force_alpha = False
        self.use_hex_argb = use_hex_argb
        self.alpha_hex = None
        self.view = view
        self.start = point - 50
        self.end = point + 50
        self.point = point
        self.region = sublime.Region(point)
        self.format_override = True

        visible = self.view.visible_region()
        if self.start < visible.begin():
            self.start = visible.begin()
        if self.end > visible.end():
            self.end = visible.end()
        self.web_color = None
        self.color = target_color[:-2] if len(target_color) > 7 else target_color

        if convert == "name":
            try:
                if len(target_color) > 7:
                    target_color = target_color[:-2]
                self.web_color = csscolors.hex2name(target_color)
            except:
                pass
            self.force_alpha = True
        elif convert in ('gray', 'graya'):
            self.convert_gray = True
            self.force_alpha = convert == 'graya'
        elif convert in ('hex', 'hexa', 'ahex'):
            self.force_alpha = convert in ('hexa', 'ahex')
        elif convert in ('rgb', 'rgba'):
            self.convert_rgb = True
            self.force_alpha = convert == 'rgba'
        elif convert in ('hsl', 'hsla'):
            self.convert_hsl = True
            self.force_alpha = convert == 'hsla'
        elif convert in ('hwb', 'hwba'):
            self.convert_hwb = True
            self.force_alpha = convert == 'hwba'
Initialize.
dataset/ETHPy150Open facelessuser/ColorHelper/color_helper_insert.py/InsertCalc.__init__