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

关于HsvEvaluator计算alpha值的错误 #5

Open
threeloe opened this issue Oct 23, 2017 · 0 comments
Open

关于HsvEvaluator计算alpha值的错误 #5

threeloe opened this issue Oct 23, 2017 · 0 comments

Comments

@threeloe
Copy link

凯哥,这行代码有点问题吧。如果我没记错的话,减法的优先级是高于右移运算符的,这样这句代码
endValue >> 24 - startValue >> 24计算的完全是不对的
int alpha = startValue >> 24 + (int) ((endValue >> 24 - startValue >> 24) * fraction);

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

1 participant