Skip to content

Conversation

SmythConor
Copy link
Contributor

When CMYK input was passed to encodeColorString the values were handled
the same as RBG values leading to incorrect colors being set. Now the
values are handled correctly by just taking what's passed to the
function as per the documentation. Fixes #2274

Also updated decodeColorString to handle CMYK color strings and fixed
encodeColorString tests and added some decodeColorString tests

@SmythConor
Copy link
Contributor Author

Tests are fine locally and it's not obvious to me what's failing in the log, any ideas?

Conor Smyth and others added 4 commits February 15, 2019 10:20
When CMYK input was passed to encodeColorString the values were handled
the same as RBG values leading to incorrect colors being set. Now the
values are handled correctly by just taking what's passed to the
function as per the documentation. Fixes #2274

Also updated decodeColorString to handle CMYK color strings and fixed
encodeColorString tests and added some decodeColorString tests
@Uzlopak
Copy link
Collaborator

Uzlopak commented Mar 23, 2019

The code looks good. Thank you very much.

Sometimes the browsers of travis-ci disconnect, resulting in failed tests.

@Uzlopak Uzlopak merged commit e6bcfc6 into parallax:master Mar 23, 2019
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.

setDrawColor sets incorrect color with CMYK input
2 participants