How do i have two seperate things happening at once

Hi, i am new to using processing and i have a university assignment where i need to create a loading screen of sorts. for my project, i am using codes taken from Open Processing and i am wanting to add a clock face to the front of what i have already got but it won't work? I was just wondering if there was a way to do this?

Answers

  • Show your code...

  • What you want to achieve is most certainly possible, but we cannot help you if you do not show us what you've got so far.

  • edited March 2018

    Very broadly:

    If you have a sketch that draws things....

    void setup(){}
    void draw(){
      background(128);     // wipe
      fill(255,0,0);       // red
      rect(10,10,80,80);   // box
    }
    

    ...and you want something on top of them, then draw those on-top things last.

    void setup(){}
    void draw(){
      background(128);     // wipe
      fill(255,0,0);       // red
      rect(10,10,80,80);   // box
      fill(0,255,0);       // green
      drawClock();         // clock
    }
    
Sign In or Register to comment.