Beispiel #1
0
 static private float NoneInOut(TimeFluctProcessState mine, TimeFluct timeFluct, float count, float startPos, float endPos, float regulation_time)
 {
     return(0);
 }
Beispiel #2
0
 public float OutFluct(TimeFluct timeFluct, float count, float startPos, float endPos, float regulation_time)
 {
     return(outFlucts_[(int)state_](this, timeFluct, count, startPos, endPos, regulation_time));
 }
Beispiel #3
0
 static private float SineOut(TimeFluctProcessState mine, TimeFluct timeFluct, float count, float startPos, float endPos, float regulation_time)
 {
     //計算
     return(timeFluct.GetRange() * (float)Math.Sin(count / regulation_time * (TimeFluct.PI / 2)) + timeFluct.GetStartPos_Archive());
 }
Beispiel #4
0
 static private float SineInOut(TimeFluctProcessState mine, TimeFluct timeFluct, float count, float startPos, float endPos, float regulation_time)
 {
     //計算
     return(-timeFluct.GetRange() / 2 * ((float)Math.Cos(TimeFluct.PI * count / regulation_time) - 1) + timeFluct.GetStartPos_Archive());
 }
Beispiel #5
0
 //Quart
 static private float QuartIn(TimeFluctProcessState mine, TimeFluct timeFluct, float count, float startPos, float endPos, float regulation_time)
 {
     //計算
     return(timeFluct.GetRange() * (count /= regulation_time) * count * count * count + timeFluct.GetStartPos_Archive());
 }
Beispiel #6
0
 static private float QuintOut(TimeFluctProcessState mine, TimeFluct timeFluct, float count, float startPos, float endPos, float regulation_time)
 {
     //計算
     return(timeFluct.GetRange() * ((count = count / regulation_time - 1) * count * count * count * count + 1) + timeFluct.GetStartPos_Archive());
 }
Beispiel #7
0
 static private float ExpoOut(TimeFluctProcessState mine, TimeFluct timeFluct, float count, float startPos, float endPos, float regulation_time)
 {
     //計算
     return((count == regulation_time) ? timeFluct.GetStartPos_Archive() + timeFluct.GetRange() : timeFluct.GetRange() *(-(float)Math.Pow(2, -10 * count / regulation_time) + 1) + timeFluct.GetStartPos_Archive());
 }
Beispiel #8
0
 //Expo
 static private float ExpoIn(TimeFluctProcessState mine, TimeFluct timeFluct, float count, float startPos, float endPos, float regulation_time)
 {
     //計算
     return((count == 0) ? timeFluct.GetStartPos_Archive() : timeFluct.GetRange() *(float)Math.Pow(2, 10 * (count / regulation_time - 1)) + timeFluct.GetStartPos_Archive());
 }
Beispiel #9
0
 static private float CircOut(TimeFluctProcessState mine, TimeFluct timeFluct, float count, float startPos, float endPos, float regulation_time)
 {
     //計算
     return(timeFluct.GetRange() * (float)Math.Sqrt(1 - (count = count / regulation_time - 1) * count) + timeFluct.GetStartPos_Archive());
 }
        static public Color32 Color32InFluctUpdateAlpha(Color32 color, TimeFluct timeFluct, float endAlpha, float count, float timeRegulation)
        {
            float result = timeFluct.InFluct(count, color.a, endAlpha, timeRegulation);

            return(new Color32(color.r, color.g, color.b, (byte)result));
        }
        static public Color32 Color32InFluctUpdateBlue(Color32 color, TimeFluct timeFluct, float endBlue, float count, float timeRegulation)
        {
            float result = timeFluct.InFluct(count, color.b, endBlue, timeRegulation);

            return(new Color32(color.r, color.g, (byte)result, color.a));
        }