I made this project to calculate the diagonals of a polygon! It also visualizes each diagonal and includes the option to add some random colour to each diagonal. It will show the total number of diagonals on the top right. USE TURBO MODE TO DRAW FASTER.
Adding random colour to the diagonals can make the program slower on some older systems(first it converts a random number between 1 and 16,777,215 to hexadecimal then shows said colour on screen.) If a polygon more than 633 sides is constructed not all diagonals will be shown since it exceeds the 200,000 item limit for lists.