79
edits
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
the part of the processing code: | |||
the relevant part of the processing code: | |||
if (data != null) { | if (data != null) { | ||
int intData = int(data); // ---> | int intData = int(data); // ---> variable for incoming data | ||
background(255, 255, 0); | background(255, 255, 0); | ||
noStroke (); | noStroke (); | ||
ellipse (560, 360, 600, 600); // ---> 1. circle: as a | ellipse (560, 360, 600, 600); // ---> 1. circle: as a reference for the 2. circle | ||
noStroke (); | noStroke (); | ||
fill (intData, intData, intData); // ---> !! set fill | fill (intData, intData, intData); // ---> !! set fill color with the value read | ||
ellipse (560, 360, intData, 600); // ---> 2. circle: visualizes the incoming data | ellipse (560, 360, intData, 600); // ---> 2. circle: visualizes the incoming data | ||
} | } | ||
} | } |
edits