浏览代码

Merge pull request #248 from Unity-Technologies/fix_alignment_issue

fix rgb2hue bug
/main
GitHub 3 年前
当前提交
1a2be3f0
共有 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) {

正在加载...
取消
保存