Use mouse to move the swings direction, and it will smoothly fall down. You can also adjust gravity with the "GRAVITY" variable slider.
Just some experimental stuff. It could be fun to use this in a platformer, as an actual swing. (Feel free to use this for that if you want.) Fully labeled with notes, and variables in English.