Display arduino values on a processing interface

I’m a beginner in processing and I want to make this diagram, I tried but I can’t do it can you help me?please

What did you try? Which functions have you used – did you try using rec(), and did you look it up in the reference? reference | p5.js

Can you link to a sketch on http://editor.p5js.org/ or paste your code here?