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

colorLUT and fillAlpha problem #155

Closed
zhoualibaba opened this issue Jul 29, 2022 · 6 comments
Closed

colorLUT and fillAlpha problem #155

zhoualibaba opened this issue Jul 29, 2022 · 6 comments

Comments

@zhoualibaba
Copy link

zhoualibaba commented Jul 29, 2022

The color i got is not linear, fillAlphe 0.99/1 changed a lot.I think i got the wrong color.I wonder if it's my fault.
When i use setToolGroupSpecificConfig like this
image
I got the color like this.
@sedghi The colorLut[1] is transparent. The colorLUT[2]/[3] are completely opaque.FillAlphe has been changed to 1.
The segmentation from left to right use colorIndex 1,2,3.
image

it seems that colorLUT[1] behave differently。
When i change the colorLUTArray.
image
The color has changed like this
image
@sedghi
When i change the colorLut[1] to [77,228,121,255],it seems that colorLUT[1] is transparent.
image

@sedghi
Copy link
Member

sedghi commented Jul 29, 2022

Yeah it is a known issue, you can read more here

@zhoualibaba
Copy link
Author

@sedghi Thank you for your reply.
So there is no way to have the color act linearly to the opacity.
I want to know why the colorLUT[1] behave differently.

@sedghi
Copy link
Member

sedghi commented Jul 29, 2022

So no for linear behaviour (as I understand). But colorLUT[1] should not be different than others. I didn't see that in your original post, can you edit your original post and add a bit more explanation?

@zhoualibaba
Copy link
Author

@sedghi I have edited my original post .
It seems that the colorLUT[0] affects the colorLUT[1].I try to change the colorLUT[2] from [77, 228, 121, 255] to [77, 228, 121, 0] ,the colorLUT[3] has also changed.
image
image

@sedghi
Copy link
Member

sedghi commented Jan 12, 2023

Do you still see this issue?

@zhoualibaba
Copy link
Author

zhoualibaba commented Jan 13, 2023

@sedghi Thank you for your reply.
I see that most of this problem has been solved,but the previous color still affects the next color a little.LIke this
image
image
When i change the colorLut[2],the colorLut[3] still changed a little.

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

No branches or pull requests

2 participants