Module ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body If CompareNotIn Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assert CompareEq SubscriptLoad NameLoad Index Num Str Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad NameLoad If CompareIn NameLoad TupleLoad Num Num body Assign NameStore Call AttributeLoad Str attr GeneratorExp BinOpAdd NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad If CompareNotIn NameLoad TupleLoad Num Num body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr ListComp BinOpDiv Call NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num Num Num comprehension NameStore Call NameLoad Num NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad body Assign NameStore ListComp Call NameLoad NameLoad keyword NameLoad keyword NameLoad comprehension NameStore NameLoad If Call NameLoad GeneratorExp CompareGt Call NameLoad NameLoad Num comprehension NameStore NameLoad body Raise Call NameLoad Str Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr If CompareNotIn SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad Num Num body Raise Call NameLoad Str If BoolOpAnd NameLoad CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num keyword Num If BoolOpOr CompareLt Call AttributeLoad NameLoad attr Num CompareGt Call AttributeLoad NameLoad attr Num body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num orelse Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpOr CompareGt Call AttributeLoad NameLoad attr Num CompareLt Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Ellipsis Call AttributeLoad NameLoad attr NameLoad Num Num Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults TupleLoad Num Num Num NameLoad NameLoad Str body Assign NameStore IfExp CompareIs NameLoad NameLoad BinOpMult TupleLoad Num Num NameLoad If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad orelse If CompareNotEq NameLoad Str body Raise Call NameLoad BinOpAdd Str NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad ExtSlice Slice Index Num NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Str If CompareGt Call NameLoad NameLoad Num body Assign NameStore Str AugAssignAdd NameStore BinOpAdd Str Call NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Return BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assert CompareEq Call NameLoad NameLoad Num orelse If CompareEq AttributeLoad NameLoad attr Num body Assert CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad Num Num Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Num attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad BinOpMult AttributeLoad NameLoad attr Num attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpDiv Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMult SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Num Num attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpDiv Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Index Num Call NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Slice Index Num Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad AugAssignSub AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Str If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword NameLoad If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Raise Call NameLoad Str If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad ExtSlice Slice Index Num NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad Call NameLoad NameLoad NameLoad attr Index Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad Call NameLoad NameLoad NameLoad attr Index Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad Call NameLoad NameLoad NameLoad attr Index Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad Call NameLoad NameLoad NameLoad attr Index Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad Call NameLoad NameLoad NameLoad attr Index Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad Call NameLoad NameLoad NameLoad attr Index Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad Call NameLoad NameLoad NameLoad attr Index Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad Call NameLoad NameLoad NameLoad attr Index Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad Call NameLoad NameLoad NameLoad attr Index Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Str Return CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Return BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A __future__ division N/A numpy np copy deepcopy ext.six string_types util logger _color_dict _color_dict color_space _hex_to_rgba _rgb_to_hex _rgb_to_hsv _hsv_to_rgb _rgb_to_lab _lab_to_rgb _string_to_rgb N/A N/A color N/A N/A N/A Convert user string or hex color to color array (length 3 or 4) N/A N/A N/A N/A color startswith # N/A N/A N/A N/A N/A color lower _color_dict N/A N/A N/A ValueError N/A Color "%s" unknown color N/A color N/A _color_dict N/A color N/A N/A N/A color N/A 0 # N/A color N/A color N/A 1 N/A lc N/A len color N/A N/A lc N/A 3 4 N/A N/A color N/A N/A join N/A N/A c c N/A c color N/A lc N/A len color N/A N/A lc N/A 6 8 N/A N/A N/A ValueError Hex color must have exactly six or eight elements following the # sign N/A color N/A N/A np array N/A N/A N/A int N/A color N/A i N/A i 2 16 255.0 N/A i N/A range 0 lc 2 N/A color N/A _user_to_rgba N/A N/A color expand clip N/A True False N/A N/A Convert color(s) from any set of fmts (str/hex/arr) to RGB(A) array N/A N/A color None N/A N/A color N/A N/A np zeros 4 N/A np float32 N/A N/A isinstance color string_types N/A N/A color N/A _string_to_rgb color N/A N/A N/A isinstance color ColorArray N/A N/A color N/A color rgba N/A N/A N/A isinstance color N/A list tuple N/A N/A N/A any N/A N/A isinstance c string_types N/A c color N/A N/A color N/A N/A _user_to_rgba c expand expand clip clip N/A c color N/A N/A any N/A N/A N/A len c 1 N/A c color N/A N/A N/A RuntimeError could not parse colors, are they nested? N/A color N/A N/A c N/A 0 N/A c color N/A color N/A N/A N/A N/A np atleast_2d color astype N/A np float32 N/A N/A N/A N/A color shape N/A 1 N/A 3 4 N/A N/A N/A ValueError color must have three or four elements N/A N/A expand N/A N/A N/A color shape N/A 1 3 N/A N/A color N/A N/A np concatenate N/A color N/A N/A np ones N/A N/A N/A color shape N/A 0 1 axis 1 N/A N/A N/A N/A N/A color min 0 N/A N/A N/A color max 1 N/A N/A clip N/A N/A color N/A N/A np clip color 0 1 N/A N/A N/A ValueError Color values must be between 0 and 1 (or use clip=True to automatically clip the values). N/A color N/A _array_clip_val N/A N/A val N/A N/A N/A Helper to turn val into array and clip between 0 and 1 N/A val N/A N/A np array val N/A N/A N/A N/A N/A val max 1 N/A N/A N/A val min 0 N/A N/A N/A N/A logger warning value will be clipped between 0 and 1 N/A N/A val N/A N/A N/A np clip val 0 1 N/A val N/A ColorArray N/A object N/A N/A An array of colors

    Parameters
    ----------
    color : str | tuple | list of colors
        If str, can be any of the names in ``vispy.color.get_color_names``.
        Can also be a hex value if it starts with ``'#'`` as ``'#ff0000'``.
        If array-like, it must be an Nx3 or Nx4 array-like object.
        Can also be a list of colors, such as
        ``['red', '#00ff00', ColorArray('blue')]``.
    alpha : float | None
        If no alpha is not supplied in ``color`` entry and ``alpha`` is None,
        then this will default to 1.0 (opaque). If float, it will override
        any alpha values in ``color``, if provided.
    clip : bool
        Clip the color value.
    color_space : 'rgb' | 'hsv'
       'rgb' (default) : color tuples are interpreted as (r, g, b) components.
       'hsv' : color tuples are interpreted as (h, s, v) components.

    Examples
    --------
    There are many ways to define colors. Here are some basic cases:

        >>> from vispy.color import ColorArray
        >>> r = ColorArray('red')  # using string name
        >>> r
        <ColorArray: 1 color ((1.0, 0.0, 0.0, 1.0))>
        >>> g = ColorArray((0, 1, 0, 1))  # RGBA tuple
        >>> b = ColorArray('#0000ff')  # hex color
        >>> w = ColorArray()  # defaults to black
        >>> w.rgb = r.rgb + g.rgb + b.rgb
        >>>hsv_color = ColorArray(color_space="hsv", color=(0, 0, 0.5))
        >>>hsv_color
        <ColorArray: 1 color ((0.5, 0.5, 0.5, 1.0))>
        >>> w == ColorArray('white')
        True
        >>> w.alpha = 0
        >>> w
        <ColorArray: 1 color ((1.0, 1.0, 1.0, 0.0))>
        >>> rgb = ColorArray(['r', (0, 1, 0), '#0000FFFF'])
        >>> rgb
        <ColorArray: 3 colors ((1.0, 0.0, 0.0, 1.0) ... (1.0, 0.0, 0.0, 1.0))>
        >>> rgb == ColorArray(['red', '#00ff00', ColorArray('blue')])
        True

    Notes
    -----
    Under the hood, this class stores data in RGBA format suitable for use
    on the GPU.
     __init__ N/A N/A self color alpha clip color_space N/A N/A 0.0 0.0 0.0 None False rgb N/A N/A color N/A N/A color None N/A N/A 0 4 color N/A N/A color_space hsv N/A N/A color N/A _hsv_to_rgb color N/A N/A N/A color_space rgb N/A N/A N/A ValueError N/A color_space should be either "rgb" or"hsv", it is  color_space N/A rgba N/A _user_to_rgba color clip clip N/A N/A alpha None N/A N/A N/A rgba N/A N/A N/A 3 alpha N/A N/A self _rgba None N/A N/A self rgba rgba N/A copy N/A N/A self N/A N/A N/A Return a copy N/A N/A deepcopy self N/A _name N/A N/A cls N/A N/A N/A Helper to get the class name once it's been created N/A N/A cls __name__ N/A classmethod __len__ N/A N/A self N/A N/A N/A N/A N/A N/A self _rgba shape N/A 0 N/A __repr__ N/A N/A self N/A N/A N/A nice_str N/A str N/A tuple N/A N/A self _rgba N/A 0 N/A plural N/A N/A N/A len self 1 N/A N/A plural s N/A nice_str N/A  ...  N/A str N/A tuple N/A N/A self rgba N/A -1 N/A N/A <%s: %i color%s (%s)> N/A N/A N/A self _name N/A len self plural nice_str N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A np array_equal N/A self _rgba N/A other _rgba N/A __getitem__ N/A N/A self item N/A N/A N/A N/A isinstance item tuple N/A N/A N/A ValueError ColorArray indexing is only allowed along the first dimension. N/A subrgba N/A N/A self _rgba N/A item N/A N/A N/A subrgba ndim 1 N/A N/A N/A N/A len subrgba 4 N/A N/A N/A N/A subrgba ndim 2 N/A N/A N/A N/A N/A subrgba shape N/A 1 N/A 3 4 N/A N/A ColorArray subrgba N/A __setitem__ N/A N/A self item value N/A N/A N/A N/A isinstance item tuple N/A N/A N/A ValueError ColorArray indexing is only allowed along the first dimension. N/A N/A isinstance value ColorArray N/A N/A value N/A value rgba N/A N/A N/A self _rgba N/A item value N/A extend N/A N/A self colors N/A N/A N/A Extend a ColorArray with new colors

        Parameters
        ----------
        colors : instance of ColorArray
            The new colors.
         N/A colors N/A ColorArray colors N/A N/A self _rgba N/A N/A np vstack N/A N/A self _rgba N/A colors _rgba N/A self N/A rgba N/A N/A self N/A N/A N/A Nx4 array of RGBA floats N/A N/A N/A N/A self _rgba copy N/A property rgba N/A N/A self val N/A N/A N/A Set the color using an Nx4 array of RGBA floats N/A rgba N/A _user_to_rgba val expand False N/A N/A N/A self _rgba None N/A N/A N/A self _rgba rgba N/A N/A N/A N/A self _rgba N/A N/A N/A N/A N/A rgba shape N/A 1 rgba N/A N/A rgba setter rgb N/A N/A self N/A N/A N/A Nx3 array of RGB floats N/A N/A N/A N/A N/A self _rgba N/A N/A N/A 3 copy N/A property rgb N/A N/A self val N/A N/A N/A Set the color using an Nx3 array of RGB floats N/A N/A self rgba val N/A N/A rgb setter RGBA N/A N/A self N/A N/A N/A Nx4 array of RGBA uint8s N/A N/A N/A N/A N/A self _rgba 255 astype N/A np uint8 N/A property RGBA N/A N/A self val N/A N/A N/A Set the color using an Nx4 array of RGBA uint8 values N/A val N/A N/A N/A N/A N/A np atleast_1d val astype N/A np float32 255 N/A N/A self rgba val N/A N/A RGBA setter RGB N/A N/A self N/A N/A N/A Nx3 array of RGBA uint8s N/A N/A N/A N/A N/A np round N/A N/A N/A self _rgba N/A N/A N/A 3 255 astype int N/A property RGB N/A N/A self val N/A N/A N/A Set the color using an Nx3 array of RGB uint8 values N/A val N/A N/A N/A N/A N/A np atleast_1d val astype N/A np float32 255.0 N/A N/A self rgba val N/A N/A RGB setter alpha N/A N/A self N/A N/A N/A Length-N array of alpha floats N/A N/A N/A self _rgba N/A N/A N/A 3 N/A property alpha N/A N/A self val N/A N/A N/A Set the color using alpha N/A N/A N/A self _rgba N/A N/A N/A 3 N/A _array_clip_val val N/A N/A alpha setter hex N/A N/A self N/A N/A N/A Numpy array with N elements, each one a hex triplet string N/A N/A _rgb_to_hex N/A self _rgba N/A property hex N/A N/A self val N/A N/A N/A Set the color values using a list of hex strings N/A N/A self rgba N/A _hex_to_rgba val N/A N/A hex setter hsv N/A N/A self N/A N/A N/A Nx3 array of HSV floats N/A N/A self _hsv N/A property hsv N/A N/A self val N/A N/A N/A Set the color values using an Nx3 array of HSV floats N/A N/A self rgba N/A _hsv_to_rgb val N/A N/A hsv setter _hsv N/A N/A self N/A N/A N/A Nx3 array of HSV floats N/A N/A _rgb_to_hsv N/A N/A self _rgba N/A N/A N/A 3 N/A property value N/A N/A self N/A N/A N/A Length-N array of color HSV values N/A N/A N/A self _hsv N/A N/A N/A 2 N/A property value N/A N/A self val N/A N/A N/A Set the color using length-N array of (from HSV) N/A hsv N/A self _hsv N/A N/A hsv N/A N/A N/A 2 N/A _array_clip_val val N/A N/A self rgba N/A _hsv_to_rgb hsv N/A N/A value setter lighter N/A N/A self dv copy N/A 0.1 True N/A N/A Produce a lighter color (if possible)

        Parameters
        ----------
        dv : float
            Amount to increase the color value by.
        copy : bool
            If False, operation will be carried out in-place.

        Returns
        -------
        color : instance of ColorArray
            The lightened Color.
         N/A color N/A copy N/A N/A self copy self N/A N/A color value dv N/A color N/A darker N/A N/A self dv copy N/A 0.1 True N/A N/A Produce a darker color (if possible)

        Parameters
        ----------
        dv : float
            Amount to decrease the color value by.
        copy : bool
            If False, operation will be carried out in-place.

        Returns
        -------
        color : instance of ColorArray
            The darkened Color.
         N/A color N/A copy N/A N/A self copy self N/A N/A color value dv N/A color N/A lab N/A N/A self N/A N/A N/A N/A _rgb_to_lab N/A N/A self _rgba N/A N/A N/A 3 N/A property lab N/A N/A self val N/A N/A N/A N/A self rgba N/A _lab_to_rgb val N/A N/A lab setter N/A Color N/A ColorArray N/A N/A A single color

    Parameters
    ----------
    color : str | tuple
        If str, can be any of the names in ``vispy.color.get_color_names``.
        Can also be a hex value if it starts with ``'#'`` as ``'#ff0000'``.
        If array-like, it must be an 1-dimensional array with 3 or 4 elements.
    alpha : float | None
        If no alpha is not supplied in ``color`` entry and ``alpha`` is None,
        then this will default to 1.0 (opaque). If float, it will override
        the alpha value in ``color``, if provided.
    clip : bool
        If True, clip the color values.
     __init__ N/A N/A self color alpha clip N/A black None False N/A N/A Parse input type, and set attribute N/A N/A isinstance color N/A list tuple N/A N/A color N/A N/A np array color N/A np float32 N/A rgba N/A _user_to_rgba color clip clip N/A N/A N/A N/A rgba shape N/A 0 1 N/A N/A N/A ValueError color must be of correct shape N/A N/A alpha None N/A N/A N/A rgba N/A N/A N/A 3 alpha N/A N/A self _rgba None N/A N/A self rgba N/A N/A rgba ravel N/A rgba N/A N/A self N/A N/A N/A N/A N/A N/A super Color self rgba N/A 0 N/A N/A N/A ColorArray rgba getter rgb N/A N/A self N/A N/A N/A N/A N/A N/A super Color self rgb N/A 0 N/A N/A N/A ColorArray rgb getter RGBA N/A N/A self N/A N/A N/A N/A N/A N/A super Color self RGBA N/A 0 N/A N/A N/A ColorArray RGBA getter RGB N/A N/A self N/A N/A N/A N/A N/A N/A super Color self RGB N/A 0 N/A N/A N/A ColorArray RGB getter alpha N/A N/A self N/A N/A N/A N/A N/A N/A super Color self alpha N/A 0 N/A N/A N/A ColorArray alpha getter hex N/A N/A self N/A N/A N/A N/A N/A N/A super Color self hex N/A 0 N/A N/A N/A ColorArray hex getter hsv N/A N/A self N/A N/A N/A N/A N/A N/A super Color self hsv N/A 0 N/A N/A N/A ColorArray hsv getter value N/A N/A self N/A N/A N/A N/A N/A N/A super Color self value N/A 0 N/A N/A N/A ColorArray value getter lab N/A N/A self N/A N/A N/A N/A N/A N/A super Color self lab N/A 0 N/A N/A N/A ColorArray lab getter is_blank N/A N/A self N/A N/A N/A Boolean indicating whether the color is invisible.
         N/A N/A N/A N/A self rgba N/A 3 0 N/A property __repr__ N/A N/A self N/A N/A N/A nice_str N/A str N/A tuple N/A N/A self _rgba N/A 0 N/A N/A <%s: %s> N/A N/A N/A self _name nice_str N/A N/A