//HUD_Slider_Class.pde //Che-Wei Wang | cwwang.com //Date:6/12/2007 //Place this file in your sketch folder. public class HUD{ PApplet parent; PFont smFont; int n; //total number of sliders int m;// this slider number starting from 0 int markerLength; //slider size color c; //slider colors int sw; //strokeWeight float v; //return value float 0-1 String name, cnH; public HUD( String names, int mm,int nn, int mLength, color cc, int strokeW){ this.parent=parent; //parent.regiserDispose(this); n=nn; m=mm; markerLength=mLength; c=cc; sw=strokeW; smFont=createFont("Helvetica",12); name=names; fill(c); } public void draw(){ stroke(c); if(abs(pmouseX-mouseX)>0||abs(pmouseY-mouseY)>0){ if (mouseX>width*m/n && mouseXwidth*m/n && mouseX