This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var activeGoto = false; | |
| var posGoto = [0,0]; | |
| function goto() { | |
| var c = modul.coordinates(); | |
| if (c[0] > posGoto[0]) { | |
| modul.move("left"); | |
| } else if (c[0] < posGoto[0]) { | |
| modul.move("right"); | |
| } | |
| if (c[1] > posGoto[1]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // emission | |
| function com(msg){ | |
| var siblingModuls = modul.sonar(); | |
| if(siblingModuls.length === 0){ | |
| ui.log("Nothing sent, you seem alone…"); | |
| }else{ | |
| var modul1 = siblingModuls[0]; | |
| var modulimg = modul1.image(); | |
| modul1.send(msg); | |
| ui.log("Your modul sent “"+msg+"”"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Description: | |
| # Makes Hubot appologies for its stupidness | |
| # | |
| # Dependencies: | |
| # None | |
| # | |
| # Configuration: | |
| # None | |
| # | |
| # Commands: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RVB vibrations effect for text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <audio> + random + autoplay |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Olive | |
| A minimal image enlarger | |
| [Demo](http://jsrun.it/rooofl/otwP) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ctx = modul.context; | |
| function skin_Default() { | |
| ctx.clearRect(0,0,50,50); | |
| // modul.io DEFAULT SKIN | |
| ctx.beginPath(); | |
| // Here is a trick to random the modul's color: | |
| ctx.fillStyle="rgba(" + Math.floor( Math.random() * 255) + "," + Math.floor( Math.random() * 255) + "," + Math.floor( Math.random() * 255) + ",1)"; | |
| //eyes | |
| ctx.fillRect(12,3, 4, 4); |
NewerOlder