Convert Color to RGB tuple.
(self)
| 260 | return self.toTuple() == other.toTuple() |
| 261 | |
| 262 | def toTuple(self) -> Tuple[float, float, float, float]: |
| 263 | """ |
| 264 | Convert Color to RGB tuple. |
| 265 | """ |
| 266 | a = self.wrapped.Alpha() |
| 267 | rgb = self.wrapped.GetRGB().Values(Quantity_TOC_sRGB) |
| 268 | |
| 269 | return (*rgb, a) |
| 270 | |
| 271 | def __getstate__(self) -> Tuple[float, float, float, float]: |
| 272 |