just test

edited July 2017 in Hello Processing

test

Comments

  • edited February 2018

    Testing http link:

    https:// forum.processing.org/two/discussion/15473/readme-how-to-format-code-and-text
    
    https:// forum.processing.org/two/discussion/15473/readme-how-to-format-code-and-text
    

    Kf

  • test
    
        void draw() {
          Draw the template for the program;
          if the integer "Pages" is 1{
            Draw the introduction page;
          }
          if the integer "Pages" is 2 {
            Draw the page where the user plan their week;
          }
          if the integer "Pages" is 3{
            Draw the setup page of the program;
          }
          if the integer "Pages" is 4 {
            Draw the programs main page;
          }
          if the integer "Pages" is 5 {
            Draw the page to insert your mood before you work;
          }
          if the integer "Pages" is 6{
            Draw the page to insert your mood after you've worked;
          }
          if the integer "Pages" is 7{
            Draw the break time page;
          }
          if the integer "Pages" is 8 {
            Draw the performance page;
          }
          if the integer "Pages" is 9 {
            Draw the analytics page;
          }
        }
    
    test 2 
        void mousePressed() {
          //Intro - PlanWeek
          if (mouseX >325  && mouseX <450 && mouseY >750  && mouseY <850 && Pages == 1) {
            Pages = 2;
          //PlanWeek - MainPage
          if (mouseX >370  && mouseX <455 && mouseY >810   && mouseY <895 && Pages == 2) {
            Pages = 4;
          }
    test 3
         if (mouseX> 210 && mouseX <220  && mouseY>300  && mouseY< 310 && Pages == 6) {
            image(S5, 275, 450);
            SmileAF5 -= 13.9;
          } 
    test 4
    void TimeCounter() {
      if (start == true) {
        if (int(millis()/100)  % 10 != millisecs) {
          millisecs++;
        }
        if (millisecs >= 10) {
          millisecs -= 10;
          millisecs2 -= 10;
          millisecs3 -= 10;
          seconds++;
          seconds2++;
          seconds3++;
        }
    test 5
        void TimeCounter() {
          if (start == true) {
            if (int(millis()/100)  % 10 != millisecs) {
              millisecs++;
            }
            if (millisecs >= 10) {
              millisecs -= 10;
              millisecs2 -= 10;
              millisecs3 -= 10;
              seconds++;
              seconds2++;
              seconds3++;
            }
    
  • int[] x = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,20};
      textAlign(CENTER, CENTER);
      for (int i = 0; i < x.length; i++) {
        pushMatrix();
        textSize(12);
        translate(25, -25);
        fill(0);
        text(x[i], 160, -13*i+815);  
        popMatrix();
    }
    
  •  for (DaysNum = 0; DaysNum < Days.length; DaysNum++) { 
        fill(0);
        textAlign(LEFT);
        textSize(18);
        text(Days[DaysNum], 180, 250+DaysNum*85);
      }
    
  •   if (mouseX >300  && mouseX <450 && mouseY >660  && mouseY <710  && Pages == 4) {
        Pages = 7;
        if (start == true) {
          start = false;
          fullstop2 = false;
        }
      }
    
  • edited December 2017

    the vimeo links issue is annoying, they just disappear if pasted verbatim

    plain link

    quoted link

    link as a code block

    same again using http rather than https

    plain link

    quoted link

    link as a code block

    as a link using the chain button (ctrl-L)

    https://vimeo.com/190290014

Sign In or Register to comment.