Skip to content

Commit c7b161e

Browse files
committed
Rephrase BasicSprite.rgb docstring
1 parent ff2aefc commit c7b161e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

arcade/sprite/base.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,13 @@ def visible(self, value: bool):
339339

340340
@property
341341
def rgb(self) -> Tuple[int, int, int]:
342-
"""Get or set only the RGB components of a color.
342+
"""Get or set only the sprite's RGB color components.
343+
344+
If a 4-color RGBA tuple is passed:
345+
346+
* The new color's alpha value will be ignored
347+
* The old alpha value will be preserved
343348
344-
If a 4-color RGBA tuple is passed, the alpha value will be
345-
ignored.
346349
"""
347350
return self._color[:3]
348351

0 commit comments

Comments
 (0)