79
edits
| No edit summary | No edit summary | ||
| Line 26: | Line 26: | ||
|    if (data != null) { |    if (data != null) { | ||
|      int intData = int(data); // ---> variable for incoming data |      int intData = int(data); // ---> !! variable for incoming data | ||
|      background(255, 255, 0); |      background(255, 255, 0); | ||
|      noStroke (); |      noStroke (); | ||
|      ellipse (560, 360, 600, 600); / |      ellipse (560, 360, 600, 600);   | ||
|     /* ---> 1. circle: 'background circle' (just as a referrence for the 2. circle) */ | |||
|      noStroke (); |      noStroke (); | ||
|      fill (intData, intData, intData); // ---> !! set fill  |      fill (intData, intData, intData); // ---> !! set fill colour with the value read | ||
|      ellipse (560, 360, intData, 600); / |      ellipse (560, 360, intData, 600);   | ||
|     /* ---> 2. circle: the 'pupil' (visualizes the incoming data) */ | |||
|    } |    } | ||
| } | } | ||
edits