kittycad.models.color

Classes

Color([a, b, g, r])

An RGBA color

class kittycad.models.color.Color(a=<kittycad.types.Unset object>, b=<kittycad.types.Unset object>, g=<kittycad.types.Unset object>, r=<kittycad.types.Unset object>)[source][source]

An RGBA color

Method generated by attrs for class Color.

__annotations__ = {'a': typing.Union[kittycad.types.Unset, float], 'additional_properties': typing.Dict[str, typing.Any], 'b': typing.Union[kittycad.types.Unset, float], 'g': typing.Union[kittycad.types.Unset, float], 'r': typing.Union[kittycad.types.Unset, float]}[source]
__attrs_attrs__ = (Attribute(name='a', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='a'), Attribute(name='b', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='b'), Attribute(name='g', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='g'), Attribute(name='r', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='r'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties'))[source]
__contains__(key)[source][source]
Return type:

bool

__delitem__(key)[source][source]
Return type:

None

__dict__ = mappingproxy({'__module__': 'kittycad.models.color', '__annotations__': {'a': typing.Union[kittycad.types.Unset, float], 'b': typing.Union[kittycad.types.Unset, float], 'g': typing.Union[kittycad.types.Unset, float], 'r': typing.Union[kittycad.types.Unset, float], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'An RGBA color', 'to_dict': <function Color.to_dict>, 'from_dict': <classmethod(<function Color.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function Color.__getitem__>, '__setitem__': <function Color.__setitem__>, '__delitem__': <function Color.__delitem__>, '__contains__': <function Color.__contains__>, '__dict__': <attribute '__dict__' of 'Color' objects>, '__weakref__': <attribute '__weakref__' of 'Color' objects>, '__attrs_attrs__': (Attribute(name='a', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='a'), Attribute(name='b', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='b'), Attribute(name='g', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='g'), Attribute(name='r', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='r'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties')), '__repr__': <function Color.__repr__>, '__eq__': <function Color.__eq__>, '__ne__': <function Color.__ne__>, '__lt__': <function Color.__lt__>, '__le__': <function Color.__le__>, '__gt__': <function Color.__gt__>, '__ge__': <function Color.__ge__>, '__hash__': None, '__init__': <function Color.__init__>, '__match_args__': ('a', 'b', 'g', 'r')})[source]
__eq__(other)[source]

Method generated by attrs for class Color.

__ge__(other)[source]

Method generated by attrs for class Color.

__getitem__(key)[source][source]
Return type:

Any

__gt__(other)[source]

Method generated by attrs for class Color.

__hash__ = None[source]
__init__(a=<kittycad.types.Unset object>, b=<kittycad.types.Unset object>, g=<kittycad.types.Unset object>, r=<kittycad.types.Unset object>)[source]

Method generated by attrs for class Color.

__le__(other)[source]

Method generated by attrs for class Color.

__lt__(other)[source]

Method generated by attrs for class Color.

__match_args__ = ('a', 'b', 'g', 'r')[source]
__module__ = 'kittycad.models.color'[source]
__ne__(other)[source]

Method generated by attrs for class Color.

__repr__()[source]

Method generated by attrs for class Color.

__setitem__(key, value)[source][source]
Return type:

None

a: Union[Unset, float][source]
property additional_keys: List[str][source]
additional_properties: Dict[str, Any][source]
b: Union[Unset, float][source]
classmethod from_dict(src_dict)[source][source]
Return type:

TypeVar(HK, bound= Color)

g: Union[Unset, float][source]
r: Union[Unset, float][source]
to_dict()[source][source]
Return type:

Dict[str, Any]