浏览代码

fix hue calculation issue

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

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


hue = 0.0f;
}
else if (foundation_.FloatEqual(max,red)) {
hue = 60.0f * (((green - blue) / delta) % 6);
hue = 60.0f * (((green - blue) / delta + 6) % 6);
}
else if (foundation_.FloatEqual(max,green)) {
hue = 60.0f * (((blue - red) / delta) + 2);

正在加载...
取消
保存