public class MaxSlider extends Slider{ MaxSlider(PApplet parent, Box b){ super(parent, b); minVal = 1; maxVal = 0; pos = 0.9; } void draw(){ super.draw(); textAlign(LEFT); textFont(meta12); fill(0.4); text("Peak popularity exceeds", round(b.left + textAscent()*.5), round(yPos - textDescent()*2)); if(b.containsMouse() || grabbed){ textAlign(CENTER); text(round(getPosition()*100)+"%", xPos, yPos+6+textAscent()); } } }