Skip to content

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

@threeloe

Description

@threeloe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions