Tau
Tau, what is it?!
This is a mathematical constant you might see sometimes in frameworks, especially in P5.
This one's easy, it's just PI * 2! It's handy when you're trying to make circles, because most drawing tools work with a radius.
Math.PI * 2 == TAU;
// returns true, if your framework has the constant TAU
// Or create it yourself!
const TAU = Math.PI * 2;
If you enjoyed this article, sign up here to get new articles whisked straight to your inbox!