a port of the Processing Visualization Language
Name

PI (3.14159...)

Examples
example pic
float f = 0.0;

beginShape(POLYGON);

while(f < PI) {

  vertex(width/2 + cos(f)*40, height/2 + sin(f)*40);

  f += PI/12.0;

}

endShape();
Description PI is a mathematical constant with the value 3.14159265358979323846. It is the ratio of the circumference of a circle to its diameter. It is useful in combination with the trigonometric functions sin() and cos().
Syntax
PI
Parameters
Usage Web & Application
Related TWO_PI
HALF_PI

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub