First preliminary Build for the gui
first the windows Library
it allows you to add all the following. I will add more later but for now these were the basic requirements.
with system radius.
sketch code looks like this;
BMScontrols bms;
PShader edges;
void settings(){
size(1200,600,P2D);
};
void setup(){
bms = new BMScontrols(this,true);
tab t = new tab(500,200,600,400,"title",bms);
t.setvScroll();
t.toggle = true;
t.draggable = true;
String []s1 = {"test1","test2"};
Menu m = new Menu(350,100,90,20,10,s1,bms);
m.setToggleBox();
t.add(m);
Menu m1 = new Menu(350,190,90,20,10,s1,bms);
m1.setToggleBar();
t.add(m1);
Menu m2 = new Menu(450,100,90,20,10,s1,bms);
m2.setRadio();
t.add(m2);
sliderBox sl1 = new sliderBox(40,100,90,90,10,s1,bms);
//sl1.setTooltipsOff();
sl1.draggable = false;
sl1.tooltip.setToggleBox();
sl1.setPieSquare();
t.add(sl1);
sliderBox sl2 = new sliderBox(200,100,90,20,10,s1,bms);
//sl1.setTooltipsOff();
sl2.draggable = false;
//sl1.tooltip.setToggleBox();
t.add(sl2);
sliderBox sl3 = new sliderBox(200,200,90,20,10,s1,bms);
//sl1.setTooltipsOff();
sl3.draggable = false;
sl3.setClassicRadio();
t.add(sl3);
sliderBox sl4 = new sliderBox(200,300,90,20,10,s1,bms);
//sl1.setTooltipsOff();
sl4.draggable = false;
sl4.setClassicSquare();
t.add(sl4);
bms.add(t);
bms.setRadius(5);
};
void draw(){
bms.run();
bms.setTabvScroll(1,0,200);
};
first preliminary build for Android screenshot taken from phone.
please note it needs ketai lib to work.
code to run everything looks like this.
import ketai.camera.*;
import ketai.cv.facedetector.*;
import ketai.data.*;
import ketai.net.*;
import ketai.net.bluetooth.*;
import ketai.net.nfc.*;
import ketai.net.nfc.record.*;
import ketai.net.wifidirect.*;
import ketai.sensors.*;
import ketai.ui.*;
BMScontrols bms;
PShader edges;
void settings(){
size(1440,720,P2D);
};
void setup(){
bms = new BMScontrols(this,true,true);
edges = loadShader("edges.glsl");
bms.camera.shader = edges;
bms.setRadius(5);
};
void draw(){
bms.run();
};
void onCameraPreviewEvent(){
bms.readCam();
};