Skip to content

Commit de0c4b5

Browse files
committed
Improve docs
1 parent 01524c6 commit de0c4b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/modulino/pixels.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ def __init__(self, r: int, g: int, b: int):
3737
self.b = b
3838

3939
def __int__(self) -> int:
40-
"""Return the 32-bit integer representation of the color."""
40+
"""
41+
Return the 32-bit integer representation of the color.
42+
Used bits: 8 to 15 for blue, 16 to 23 for green, 24 to 31 for red.
43+
"""
4144
return (self.b << 8 | self.g << 16 | self.r << 24)
4245

4346
ModulinoColor.RED = ModulinoColor(255, 0, 0)

0 commit comments

Comments
 (0)