浏览代码

fix rgb2hue bug

/fix_alignment_issue
Xingwei Zhu 3 年前
当前提交
49b4403f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.uiwidgets/Runtime/painting/colors.cs

2
com.unity.uiwidgets/Runtime/painting/colors.cs


public partial class painting_ {
internal static float _getHue(float red, float green, float blue, float max, float delta) {
float hue = 0;
if (max == 0.0f) {
if (delta == 0.0f) {
hue = 0.0f;
}
else if (max == red) {

正在加载...
取消
保存