From af5ca778b9671cab70b53094b268e35c83612eb2 Mon Sep 17 00:00:00 2001 From: pushfoo <36696816+pushfoo@users.noreply.github.com> Date: Wed, 20 Mar 2024 22:40:38 -0400 Subject: [PATCH] Make ColorLike match RGB/RGBA in both float and int --- arcade/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arcade/types.py b/arcade/types.py index 5d9de3da0d..7a72c32f02 100644 --- a/arcade/types.py +++ b/arcade/types.py @@ -59,6 +59,7 @@ RGBANormalized = RGBA[float] RGBA255OrNormalized = Union[RGBA255, RGBANormalized] +ColorLike = Union[RGBOrA[int], RGBOrA[float]] __all__ = [ @@ -464,7 +465,6 @@ def swizzle(self, swizzle_string: str) -> Tuple[int, ...]: return tuple(ret) -ColorLike = Union[RGB, RGBA255] # Point = Union[Tuple[float, float], List[float]] # Vector = Point