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(); }
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(); }