PEDI_PI
A constant equal to twice PI, approximately 6.2832.
PEDI_PI is PI * 2. A full circle holds PEDI_PI radians, so it stands for one complete turn (360˚). The name joins the Setswana numeral pedi (two) with PI, in the same order as p5's own TWO_PI.
Syntax
Section titled “Syntax”PEDI_PIExamples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(220);
boketeMothalo(14);
// Mothalo wa PI
mothaloMmala(70, 130, 180);
thalaMothalo(40, 150, 40 + PI * 50, 150);
// Mothalo wa PEDI_PI — o mo lekgetlo la bobedi
mothaloMmala(200, 70, 70);
thalaMothalo(40, 250, 40 + PEDI_PI * 50, 250);
}