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

'Add all to palette' in 'Brightness/Darkness' produces disordered results #38

Closed
thezbyg opened this issue Mar 21, 2015 · 4 comments
Closed

Comments

@thezbyg
Copy link
Owner

thezbyg commented Mar 21, 2015

Original issue 38 created by thezbyg on 2011-05-29T00:07:37.000Z:

I was writing a detailed article on how to use GPick (which you are welcome to use here on the wiki, BTW, when it's done.), when
I discovered this bug.

Most logical groups of colors are added in an orderly way. Brightness-Darkness's colors, OTOH, are added in a consistent, but badly ordered way, IMO.

954
853
752
651

^^ text depiction of the layout of the brightness-darkness 'window', in the order that makes sense to add the colors IMO. 5 is the base color, 1-4 are darker versions, 6-9 are lighter. This would be consistent with the 'Variations' and 'Color scheme' 'windows' in terms of the color ordering it produces.

The order that they actually get added to the palette in currently looks like this:

846
943
241
745

(4 being the base color here.)

Which doesn't seem to have any sensible order to it at all.

@thezbyg
Copy link
Owner Author

thezbyg commented Mar 21, 2015

Comment #1 originally posted by thezbyg on 2011-05-29T00:18:02.000Z:

I'm pretty sure lua table hashing is the culprit. working on a fix now.

@thezbyg
Copy link
Owner Author

thezbyg commented Mar 21, 2015

Comment #2 originally posted by thezbyg on 2011-05-29T01:46:27.000Z:

Fixed. Patch attached.

@thezbyg
Copy link
Owner Author

thezbyg commented Mar 21, 2015

Comment #3 originally posted by thezbyg on 2011-05-29T08:49:33.000Z:

Thanks for the patch, I committed a fix in revision 8523b7083ed6

Good luck with the article, any kind of documentation is highly valuable

@thezbyg
Copy link
Owner Author

thezbyg commented Mar 21, 2015

Comment #4 originally posted by thezbyg on 2011-05-29T09:31:10.000Z:

Hah, obviously you spotted something I missed -- the way I initially tried to fix this bug looked just like your approach, but whenever I used ipairs(), 'add all to palette' would do nothing :)

@thezbyg thezbyg closed this as completed Mar 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant