2023-08-16 16:31:50 -07:00
|
|
|
|
2024-01-06 18:32:21 -08:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
2023-08-16 16:31:50 -07:00
|
|
|
|
|
|
|
|
2023-11-29 00:39:14 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
class Color(BaseModel):
|
|
|
|
"""An RGBA color"""
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
a: float
|
2023-08-16 16:31:50 -07:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
b: float
|
2023-08-16 16:31:50 -07:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
g: float
|
2023-08-16 16:31:50 -07:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
r: float
|
2024-01-06 18:32:21 -08:00
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|