[GH-ISSUE #330] Color picker is inaccurate when placing in HEX values #1644

Closed
opened 2026-03-01 18:47:09 +03:00 by kerem · 2 comments
Owner

Originally created by @zalmanlew on GitHub (May 30, 2018).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/330

Originally assigned to: @NickeManarin on GitHub.

I was pasting in HEX values and was quite surprised at what they showed.

The color on the left is what it's supposed to show, the color on the right is what it actually shows.

The problem has something to do with it mixing around the numbers (it has the 61, 187, 210 correct, just in wrong order - and one of them was applied to alpha as well)

image

image

Originally created by @zalmanlew on GitHub (May 30, 2018). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/330 Originally assigned to: @NickeManarin on GitHub. I was pasting in HEX values and was quite surprised at what they showed. The color on the left is what it's supposed to show, the color on the right is what it actually shows. The problem has something to do with it mixing around the numbers (it has the 61, 187, 210 correct, just in wrong order - and one of them was applied to alpha as well) ![image](https://user-images.githubusercontent.com/35234925/40694034-80b82e22-6388-11e8-8693-55e3cd2e464f.png) ![image](https://user-images.githubusercontent.com/35234925/40694068-b3ff29ca-6388-11e8-95f2-3543684e5a88.png)
kerem 2026-03-01 18:47:09 +03:00
Author
Owner

@NickeManarin commented on GitHub (May 30, 2018):

Try pasting #FF3DBBD2 instead.
I'll fix this by checking the length of the code.
Thanks.

<!-- gh-comment-id:393012082 --> @NickeManarin commented on GitHub (May 30, 2018): Try pasting #FF3DBBD2 instead. I'll fix this by checking the length of the code. Thanks.
Author
Owner

@NickeManarin commented on GitHub (May 31, 2018):

Fixed. Now it will work like this:

If you paste #A1 or just A1: It will apply 0xFF to the alpha value and 0xA1 to RGB.
If you paste #F411 or just F411: It will apply 0xF4 to the alpha value and 0x11 to RGB.
If you paste #F41122 or just F41122: It will apply 0xFF to the alpha value and 0xF4 + 0x11 + 0x22 to RGB.
If you paste #FFF41122 or just FFF41122: It will work as usual.

<!-- gh-comment-id:393572732 --> @NickeManarin commented on GitHub (May 31, 2018): Fixed. Now it will work like this: If you paste **#A1** or just **A1**: It will apply **0xFF** to the alpha value and **0xA1** to RGB. If you paste **#F411** or just **F411**: It will apply **0xF4** to the alpha value and **0x11** to RGB. If you paste **#F41122** or just **F41122**: It will apply **0xFF** to the alpha value and **0xF4 + 0x11 + 0x22** to RGB. If you paste **#FFF41122** or just **FFF41122**: It will work as usual.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#1644
No description provided.