//PiAngle source code from brik-web.duckdns.org/srcpiangle.html
//By magnado (magnado.itch.io)
//Please keep this attribution block
playSound("sound://default.mp3", false);
playSpeech("Pi angle", "male", "English");
//piangle sides
var p_sides = PI;
var piangle_x = 0;
function draw() {
//background
background("cornflowerblue");
//draw piangle
regularPolygon(200, 220, p_sides, 71);
//draw animated piangles
regularPolygon(piangle_x, 370, p_sides, 30);
regularPolygon(piangle_x - 200, 370, p_sides, 30);
regularPolygon(piangle_x - 400, 370, p_sides, 30);
regularPolygon(piangle_x - 50, 320, p_sides, 30);
regularPolygon(piangle_x - 250, 320, p_sides, 30);
regularPolygon(piangle_x - 450, 320, p_sides, 30);
//animate piangles
piangle_x = piangle_x + 5;
//reset piangles
if (piangle_x - 450 > 399) {
piangle_x = 0;
}
//text
fill("black");
textFont("Times New Roman");
textSize(50);
text("PiAngle", 10, 50);
}
go to: Code.org (you might need to either make an account or log in)
Make a new Gamelab project
delete all default code
And paste the code from above.
(click on it to begin)
© 2026 The Brik Calculator Company. All rights reserved.