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
| class Robot { | |
| float x; | |
| float y; | |
| float torsoW = random(50, 100); | |
| float torsoH = torsoW + 10; | |
| color torsoColor = color(random(360), 100, 100); | |
| float eyesRadius = 10; | |
| color eyesColor = color(random(360), 100, 100); | |
| Robot(float posX, float posY) { |
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
| /* | |
| * This file is part of ScratchHelper Library by Massimo Avvisati | |
| * | |
| * Licensed under GPL v3 | |
| * | |
| */ | |
| package com.mondonerd.scratch; | |
| import java.io.IOException; |
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
| /* | |
| ARsenico | |
| Released under GPL v3 | |
| */ | |
| KetaiCamera cam; | |
| boolean touched; | |
| UI ui; |
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
| import java.util.List; | |
| Observable<String> cities; | |
| Observer<String> traveller; | |
| void setup() { | |
| List<String> cityList = new ArrayList(); | |
| cityList.add("13"); | |
| cityList.add("12"); | |
| cityList.add("11"); | |
| cityList.add("10"); | |
| cityList.add("9"); |
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
| Element player, enemy; | |
| void setup() { | |
| fullScreen(); | |
| player = new Element("animal.gif", 50, 50); | |
| enemy = new Element("animal.gif", 40, 40, -175, -309); | |
| stroke(#ff00ff); | |
| } |
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
| import javax.jmdns.*; | |
| import java.util.*; | |
| import java.net.*; | |
| JmDNS jmdns; | |
| static String message = ""; | |
| void setup() { | |
| size(640, 480); | |
| InetAddress ipAddress = getLocalIpAddress(); |
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
| import javax.jmdns.*; | |
| import java.util.Map; | |
| import java.net.InetAddress; | |
| import java.util.Locale; | |
| import android.net.wifi.WifiManager.MulticastLock; | |
| import android.net.wifi.WifiManager; | |
| import android.net.wifi.WifiInfo; | |
| import android.app.Fragment; | |
| import android.content.Context; | |
| import java.net.UnknownHostException; |
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
| #include <Bridge.h> | |
| #include <HttpClient.h> | |
| int lightValue; | |
| int photoResistorPin = A0; //analog input 0 | |
| void setup() { | |
| // Bridge takes about two seconds to start up | |
| // it can be helpful to use the on-board LED | |
| // as an indicator for when it has initialized | |
| pinMode(13, OUTPUT); |
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
| class Bird { | |
| int frameCounter = 0; | |
| int currentAnimation = 0; | |
| float posX, posY; | |
| PImage[][] animations; | |
| int lastFrame = millis(); | |
| int fps = 12; | |
| Bird(float posX, float posY, String baseFilename, int numberOfAnimations, int numberOfFrames) { | |
| animations = new PImage[numberOfAnimations][numberOfFrames]; |