Skip to content

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.

2 participants