예제 #1
0
 public void SetColor(Color32 color, OnColor32Changed _onColor32Changed)
 {
     originalAlpha    = color.a / 255.0f;
     currentHSV       = ColorUtil.HSV.RGB2HSV(color);
     currentHSV.h     = 360.0f - currentHSV.h;
     onColor32Changed = _onColor32Changed;
     RedrawPicker();
 }
예제 #2
0
 public void SetColor(Color32 color, OnColor32Changed _onColor32Changed)
 {
     originalAlpha = color.a/255.0f;
     currentHSV = ColorUtil.HSV.RGB2HSV(color);
     currentHSV.h = 360.0f - currentHSV.h;
     onColor32Changed = _onColor32Changed;
     RedrawPicker();
 }