-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Pleasing aims to be an easy-to-use easing and tweening library for use with Monogame.
The majority of games and motion graphics require smooth interpolation of values. Properties like color, position, rotation, scale, and others are often dynamic allowing objects to move and change over time. Often when artists and developers are starting out they begin by using linear interpolation; a simple increase of decrease of a value over time at the same rate. This works and is even desirable in some cases but more often they will want what is known as easing and tweening to give them smoother transitions.
Easing takes what was a straight progression from 0 to 1, as an example, and instead curves it so it smoothly quickly, slowly, or both, from 0 to 1.
Tweening is easing implemented. Where easing describes how a value get's from 0 to 1, tweening uses easing and a property and applies that easing to the property over a specified amount of time. Tweening is short for in-betweening which is the idea of animating the change in-between two values.
The primary goal with Pleasing was to make a simple, but extensive tweening implementation for Monogame. Some key features are as follows:
- Fire-and-forget
- Stop/Start/Pause/Resume controls
- Looping
- Compatible with any object and datatype
- Pre-made easing functions for quick use
- Custom easing via cubic Bezier curves
- A tween timeline for choreographing multiple tweens