Here are five JavaScript examples illustrating basic 2D tansformations.