@@ -194,7 +194,8 @@ def __init__(
194
194
self ._internal_value = np .array ([0 , 0 , 0 , alpha ], dtype = ManimColorDType )
195
195
elif isinstance (value , ManimColor ):
196
196
# logger.info(
197
- # "ManimColor was passed another ManimColor. This is probably not what you want. Created a copy of the passed ManimColor instead."
197
+ # "ManimColor was passed another ManimColor. This is probably not what "
198
+ # "you want. Created a copy of the passed ManimColor instead."
198
199
# )
199
200
self ._internal_value = value ._internal_value
200
201
elif isinstance (value , int ):
@@ -207,8 +208,8 @@ def __init__(
207
208
)
208
209
else :
209
210
# This is not expected to be called on module initialization time
210
- # It can be horribly slow to convert a string to a color because it has to access the dictionary of colors and find the right color
211
- self . _internal_value = ManimColor . _internal_from_string ( value )
211
+ # It can be horribly slow to convert a string to a color because
212
+ # it has to access the dictionary of colors and find the right color
212
213
elif isinstance (value , (list , tuple , np .ndarray )):
213
214
length = len (value )
214
215
if all (isinstance (x , float ) for x in value ):
@@ -234,7 +235,9 @@ def __init__(
234
235
else :
235
236
# logger.error(f"Invalid color value: {value}")
236
237
raise TypeError (
237
- f"ManimColor only accepts int, str, list[int, int, int], list[int, int, int, int], list[float, float, float], list[float, float, float, float], not { type (value )} "
238
+ "ManimColor only accepts int, str, list[int, int, int], "
239
+ "list[int, int, int, int], list[float, float, float], "
240
+ f"list[float, float, float, float], not { type (value )} "
238
241
)
239
242
240
243
@property
0 commit comments