1 # SPDX-License-Identifier: MIT
8 return (self
>> 16) & 0xFF, (self
>> 8) & 0xFF, self
& 0xFF
12 return (self
>> 16) & 0xFF
16 return (self
>> 8) & 0xFF
22 def __getitem__(self
, item
):
29 raise IndexError(item
)
32 def from_rgb(r
, g
, b
):
33 return TrueColor(((r
& 0xff) << 16) |
((g
& 0xff) << 8) |
(b
& 0xff))
38 raise IndexError(index
)
39 return dxf_default_colors
[index
]
42 def aci_to_true_color(index
):
43 return TrueColor
.from_aci(index
)
46 dxf_default_colors
= [