#N canvas 1375 228 431 196 10;
#X obj 126 48 inlet;
#X obj 126 132 outlet;
#X obj 126 69 t b b;
#X obj 153 111 outlet;
#X obj 165 48 inlet;
#X msg 165 69 value \$1;
#X obj 153 90 ofelia d -k \$0-toggle;
#A __set local c = ofCanvas(this) \; local args = c:getArgs() \; local
xpos \, ypos \, size = args[1] \, args[2] \, args[3] \; local value
= false \; \; function M.new() \; ofWindow.addListener("mousePressed"
\, this) \; end \; \; function M.value(float) \; if float <= 0 then
\; value = false \; else \; value = true \; end \; return value \;
end \; \; function M.bang() \; ofPushMatrix() \; ofPushStyle() \; ofSetRectMode(OF_RECTMODE_CORNER)
\; ofFill() \; ofSetColor(255) \; ofDrawRectangle(xpos \, ypos \, size
\, size) \; ofSetLineWidth(2) \; if value then \; ofSetColor(0) \;
ofDrawLine(xpos \, ypos \, xpos + size \, ypos + size) \; ofDrawLine(xpos
+ size \, ypos \, xpos \, ypos + size) \; end \; ofNoFill() \; ofSetColor(0)
\; ofDrawRectangle(xpos \, ypos \, size \, size) \; ofPopStyle() \;
ofPopMatrix() \; end \; \; function M.free() \; ofWindow.removeListener("mousePressed"
\, this) \; end \; \; function M.mousePressed(e) \; if ofGetMouseX()
> xpos and ofGetMouseX() < xpos + size and ofGetMouseY() > ypos and
ofGetMouseY() < ypos + size then \; value = not value \; return value
\; end \; end \;;
#X f 22;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X connect 2 1 6 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 3 0;
