We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae96a23 commit 68e8f05Copy full SHA for 68e8f05
docs/reST/ref/color.rst
@@ -92,6 +92,11 @@
92
:returns: a newly created :class:`Color` object
93
:rtype: Color
94
95
+ .. versionchanged:: 2.5.6
96
+ ``bytes(Color(...))`` (assuming `bytes <https://docs.python.org/3/library/stdtypes.html#bytes>`_ is
97
+ the built-in type) now returns a ``bytes`` object (of length 4) with the RGBA values of the color,
98
+ as opposed to :class:`Color` being interpreted as an integer (think ``int(Color(...))``) causing it
99
+ to return a ``bytes`` object filled with 0s the length of said integer.
100
.. versionchangedold:: 2.0.0
101
Support for tuples, lists, and :class:`Color` objects when creating
102
:class:`Color` objects.
0 commit comments