juxtopposed / realtimecolors

Real-time UI Colorpicking Tool. See your favorite colors of choice for a website in real time.
https://realtimecolors.com
Other
798 stars 31 forks source link

[Bug]: Pick no-saturation color. Hue change to red (0°) #87

Closed PositiveUser closed 8 months ago

PositiveUser commented 11 months ago

Is there an existing issue for this?

Describe the bug

Whenever I select a zero-saturation color like completely neutral grays, black or white in the color picker, it changes the hue to red (0°).

These no-saturation colors are present at the extreme left and bottom edges/corners.

Reproduction Steps

Bug description

Expected behavior

The hue should not change to red (0°) when picking a neutral, black or white gray.

Screenshots

A few examples with black and white although neutral grays also cause the same issue.

https://github.com/juxtopposed/realtimecolors/assets/89864580/074c98fa-4793-4155-ac94-9f6b2adacc91

Device Info

Not device-specific and browser-specific; Happens in all contexts.

Additional context

No response

PositiveUser commented 11 months ago

It changes the hue to red or zero degrees whenever a picked color doesn't have saturated.

Before: image

After: image

In HSL, I set the saturation to 0, so it changed the hue to 0

juxtopposed commented 8 months ago

This should be resolved (v3.5)

PositiveUser commented 8 months ago

This should be resolved (v3.5)

Not resolved yet

It changes the hue to red or zero degrees whenever a picked color doesn't have saturated.

Before: image

After: image

In HSL, I set the saturation to 0, so it changed the hue to 0

Still happens

PositiveUser commented 8 months ago

But, if I use the above color picker instead of the below input, the bug is fixed here.

juxtopposed commented 8 months ago

The HSL input behavior is expected. Many colorpickers do the same. It's mostly because the lack of saturation returns the same color across all hues. I'll close this as the colorpicker's bug is resolved for now.