Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void draw() {
- calculate_delta_time();
- background(120);
- drawBorders();
- switch(mode) {
- case 1: //1 - gravitation
- if (field)
- {
- centralFieldManagement();
- } else
- {
- homogeneousFieldManagement();
- }
- break;
- case 2: //2 - pendulum
- if (pendul)
- {
- singlePendulumManagement();
- } else
- {
- dublePendulumManagement();
- }
- break;
- case 3: //3 - programs on whole screen
- background(0);
- if (wholeScreen)
- {
- noFill();
- table.show();
- } else
- {
- seq.drawing();
- }
- fill(200, 200, 200);
- break;
- case 4: // 4 - strenge circles
- if (cirOrNpendul)
- {
- strangeCirclesManagement();
- } else
- {
- nPendulManagement();
- }
- break;
- case 5: // 5 - fourier transformation
- noFill();
- background(0);
- fourier.show();
- break;
- }
- textSize(20);
- fill(10, 10, 10);
- if (mode == 3 || mode == 4|| mode == 5)
- {
- fill(200, 200, 200);
- }
- if (!stopStart)
- {
- contextMenu(currentIndex);
- changePositionByTheMouse(currentIndex);
- }
- checkingIfMouseIsOver();
- ButtonManagement();
- }
Add Comment
Please, Sign In to add comment