Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit c846010

Browse files
author
Yuncong Zhang
committed
Update curves.cs
1 parent 9b87c45 commit c846010

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

Runtime/animation/curves.cs

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,68 @@ public static class Curves {
282282
public static readonly Curve linear = new _Linear();
283283

284284
public static readonly Curve decelerate = new _DecelerateCurve();
285+
286+
public static readonly Cubic fastLinearToSlowEaseIn = new Cubic(0.18f, 1.0f, 0.04f, 1.0f);
285287

286288
public static readonly Curve ease = new Cubic(0.25f, 0.1f, 0.25f, 1.0f);
287289

288290
public static readonly Curve easeIn = new Cubic(0.42f, 0.0f, 1.0f, 1.0f);
291+
292+
public static readonly Cubic easeInToLinear = new Cubic(0.67f, 0.03f, 0.65f, 0.09f);
293+
294+
public static readonly Cubic easeInSine = new Cubic(0.47f, 0, 0.745f, 0.715f);
295+
296+
public static readonly Cubic easeInQuad = new Cubic(0.55f, 0.085f, 0.68f, 0.53f);
297+
298+
public static readonly Cubic easeInCubic = new Cubic(0.55f, 0.055f, 0.675f, 0.19f);
299+
300+
public static readonly Cubic easeInQuart = new Cubic(0.895f, 0.03f, 0.685f, 0.22f);
301+
302+
public static readonly Cubic easeInQuint = new Cubic(0.755f, 0.05f, 0.855f, 0.06f);
303+
304+
public static readonly Cubic easeInExpo = new Cubic(0.95f, 0.05f, 0.795f, 0.035f);
305+
306+
public static readonly Cubic easeInCirc = new Cubic(0.6f, 0.04f, 0.98f, 0.335f);
307+
308+
public static readonly Cubic easeInBack = new Cubic(0.6f, -0.28f, 0.735f, 0.045f);
289309

290310
public static readonly Curve easeOut = new Cubic(0.0f, 0.0f, 0.58f, 1.0f);
311+
312+
public static readonly Cubic linearToEaseOut = new Cubic(0.35f, 0.91f, 0.33f, 0.97f);
313+
314+
public static readonly Cubic easeOutSine = new Cubic(0.39f, 0.575f, 0.565f, 1.0f);
315+
316+
public static readonly Cubic easeOutQuad = new Cubic(0.25f, 0.46f, 0.45f, 0.94f);
317+
318+
public static readonly Cubic easeOutCubic = new Cubic(0.215f, 0.61f, 0.355f, 1.0f);
319+
320+
public static readonly Cubic easeOutQuart = new Cubic(0.165f, 0.84f, 0.44f, 1.0f);
321+
322+
public static readonly Cubic easeOutQuint = new Cubic(0.23f, 1.0f, 0.32f, 1.0f);
323+
324+
public static readonly Cubic easeOutExpo = new Cubic(0.19f, 1.0f, 0.22f, 1.0f);
325+
326+
public static readonly Cubic easeOutCirc = new Cubic(0.075f, 0.82f, 0.165f, 1.0f);
327+
328+
public static readonly Cubic easeOutBack = new Cubic(0.175f, 0.885f, 0.32f, 1.275f);
291329

292330
public static readonly Curve easeInOut = new Cubic(0.42f, 0.0f, 0.58f, 1.0f);
331+
332+
public static readonly Cubic easeInOutSine = new Cubic(0.445f, 0.05f, 0.55f, 0.95f);
333+
334+
public static readonly Cubic easeInOutQuad = new Cubic(0.455f, 0.03f, 0.515f, 0.955f);
335+
336+
public static readonly Cubic easeInOutCubic = new Cubic(0.645f, 0.045f, 0.355f, 1.0f);
337+
338+
public static readonly Cubic easeInOutQuart = new Cubic(0.77f, 0, 0.175f, 1.0f);
339+
340+
public static readonly Cubic easeInOutQuint = new Cubic(0.86f, 0, 0.07f, 1.0f);
341+
342+
public static readonly Cubic easeInOutExpo = new Cubic(1.0f, 0, 0, 1.0f);
343+
344+
public static readonly Cubic easeInOutCirc = new Cubic(0.785f, 0.135f, 0.15f, 0.86f);
345+
346+
public static readonly Cubic easeInOutBack = new Cubic(0.68f, -0.55f, 0.265f, 1.55f);
293347

294348
public static readonly Curve fastOutSlowIn = new Cubic(0.4f, 0.0f, 0.2f, 1.0f);
295349

0 commit comments

Comments
 (0)