Showing posts with label Processing Language. Show all posts
Showing posts with label Processing Language. Show all posts

Processing on desktop vs Processing for Android

It's the same code run Processing on desktop and Android, with Android Mode.

Run on Nexus One:

Run on desktop:


The example code:
void setup(){
size(400, 300);
background(0);
stroke(255);
}

void draw() {

noFill();

if(mousePressed){
background(0);
point(mouseX, mouseY);
line(80, 50, mouseX, mouseY);
line(50, 200, 350, 250);
curve(80, 50, mouseX, mouseY, 50, 200, 350, 250);

}

}


Related:
- Setup Processing for Android development
- Hello World of Processing for Android

Cross post: Arduino-er blog - Processing on desktop vs Processing for Android

Ketai: library for the Android Mode in Processing.


Ketai Library for Android Mode in Processing makes it easy to work with hardware devices and sensors built into Android phones and tablets. The library focus specifically on mobile Android features, including cameras, sensors, multi-touch gestures, peer-to-peer networking via Bluetooth and WiFi Direct, Near Field Communication (NFC), and SQLite for local databases.

Project home of ketai