protected static new ColorTo Create(float d, float a = DefalutValue) { var ret = new ColorTo(); if (ret.InitWithDuration(d)) { ret.m_to_a = a; return(ret); } return(null); }
/// <summary> /// 颜色渐变 /// </summary> /// <param name="d">0-1</param> /// <param name="r">0-1</param> /// <param name="g">0-1</param> /// <param name="b">0-1</param> /// <param name="a">0-1</param> /// <returns></returns> public static new ColorTo Create(float d, float r, float g, float b, float a = DefalutValue) { var ret = new ColorTo(); if (ret.InitWithDuration(d)) { ret.m_to_r = r; ret.m_to_g = g; ret.m_to_b = b; ret.m_to_a = a; return(ret); } return(null); }
public static ColorTo Create(float d) { return(ColorTo.Create(d, 0f)); }