Skip to content

Commit

Permalink
fixed variables example comments
Browse files Browse the repository at this point in the history
  • Loading branch information
matsfunk committed Dec 4, 2016
1 parent 290a544 commit 9b59518
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ void setup() {
// (for more information how to run an OOCSI server refer to: https://iddi.github.io/oocsi/)
OOCSI oocsi = new OOCSI(this, null, "localhost");

// create OOCSI variable with key "color" and data type Integer (int)
// create OOCSI variable on channel "varChannel" with key "posX" and data type Integer (int)
ovX = Constellation.createInteger(oocsi, "varChannel", "posX");
// create OOCSI variable on channel "varChannel" with key "posY" and data type Integer (int)
ovY = Constellation.createInteger(oocsi, "varChannel", "posY");
}

Expand All @@ -32,7 +33,6 @@ void draw() {
fill(255);

// draw rect at the position given by the variables
// which are set by another OOCSI client and synchronized
// thru OOCSI automatically
// which are set by another OOCSI client and synchronized thru OOCSI automatically
rect(ovX.get(), ovY.get(), 10, 10);
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ void setup() {
// (for more information how to run an OOCSI server refer to: https://iddi.github.io/oocsi/)
OOCSI oocsi = new OOCSI(this, null, "localhost");

// create OOCSI variable with key "color" and data type Integer (int)
// create OOCSI variable on channel "varChannel" with key "posX" and data type Integer (int)
ovX = Constellation.createInteger(oocsi, "varChannel", "posX");
// create OOCSI variable on channel "varChannel" with key "posY" and data type Integer (int)
ovY = Constellation.createInteger(oocsi, "varChannel", "posY");
}

Expand Down

0 comments on commit 9b59518

Please sign in to comment.