Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@d4rya38
Copy link
Contributor

@d4rya38 d4rya38 commented Oct 3, 2025

Fixed a bug where the get.rgb() function returned invalid results if called with named colors and the returned array is modified then called with the same named color.

Copy link
Owner

@Qix- Qix- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use .slice() instead.

@d4rya38
Copy link
Contributor Author

d4rya38 commented Oct 3, 2025

It should be good to go now. Oh and I forgot to change the patch number, I'm new to this stuff, sorry for that

@Qix-
Copy link
Owner

Qix- commented Oct 4, 2025

Thanks for the PR! I'm actually out of town right now and can't publish without my key, so it'll be about two weeks before it'll get published. Hopefully that's alright.

Appreciate the quick fix :)

@Qix- Qix- merged commit 0d4fd0c into Qix-:master Oct 4, 2025
3 checks passed
@d4rya38 d4rya38 deleted the bugfix/85-get-rgb-named-color-bug branch October 4, 2025 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

named colors should return a copy of the result array when using get.rgb("colorName")

3 participants