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
/* | |
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
/* | |
* 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
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
import android.net.Uri; | |
import android.content.Intent; | |
void setup() { | |
} | |
void draw() { | |
} | |
void mousePressed() { |
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
int lastTime; //variabile | |
boolean stopTime = false; | |
int currentTime = 0; | |
int delay = 1000; //millis | |
final int INIT = -1; | |
final int RESTING = 0; | |
final int SHOWING = 1; | |
int state = INIT; | |
boolean debug = true; |
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.*; | |
import java.net.*; | |
void setup() { | |
try { | |
Enumeration e = NetworkInterface.getNetworkInterfaces(); | |
while (e.hasMoreElements ()) | |
{ | |
NetworkInterface n = (NetworkInterface) e.nextElement(); |
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
PImage sfondo; | |
PImage player1; | |
PImage player2; | |
PImage gem; | |
int x1 = 100; | |
int y1 = 300; | |
int x2 = 500; | |
int y2 = 300; |
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
Game game; | |
Element e; | |
void setup() { | |
size(640, 480, P3D); | |
noStroke(); | |
e = new MouseMoved(); | |
//e.transformation.scale(10); | |
//e.transformation.rotate(PI / 4); | |
e.addChild(new Circle(30, 10)).transformation.scale(10);; |