Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved mode range documentation #6795

Merged
merged 2 commits into from
Dec 22, 2022
Merged

Conversation

radarhere
Copy link
Member

Helps #6786

Inputting HSV (359.9, 100%, 100%) into https://www.rapidtables.com/convert/color/hsv-to-rgb.html, I get RGB (255, 0, 0).

>>> from PIL import Image
>>> im = Image.new("HSV", (1, 1), (255, 255, 255))
>>> im.convert("RGB").getpixel((0, 0))
(255, 0, 0)

I would therefore conclude that the H value ranges from 0-360, excluding 360.

@radarhere
Copy link
Member Author

I've added another commit to mention the ranges of the "I" and "F" modes.

@radarhere radarhere changed the title Document Hue range Improved mode range documentation Dec 11, 2022
@hugovk hugovk merged commit edcfe09 into python-pillow:main Dec 22, 2022
@radarhere radarhere deleted the modes branch December 22, 2022 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants