import processing.phone.*; Phone p; PContainer options, speeds, freq, about; PLabel label; PList list,slist,flist,alist; int pieSize; int h,m,s; boolean vibe=false; int frame=2; int hVibe=100; int mVibe=5; int margin; int tHeight; int vibeInterval=15; boolean showOptions,showSpeeds,showFreq,showAbout=false; boolean back=false; void setup(){ p=new Phone(this); p.fullscreen(); strokeWeight(width/100); setupUI(); init(); } void draw(){ framerate(frame); s=second(); for (int i=0; i<60; i=i+vibeInterval){ if(m==i&&s==1) vibe=true; } haptics(); if(showOptions==false&&showSpeeds==false&&showFreq==false) { pie(60,s,2,3); if (s==0) init(); } if(showOptions) options.draw(); if(showSpeeds){ // options.draw(); speeds.draw(); } if(showFreq){ // options.draw(); freq.draw(); } if(showAbout){ about.draw(); } } int h(){ int hh; if (hour()>12) hh=hour()-12; else hh=hour(); return hh ; }