GradientBox
This page talks about GradientBox
This page talks about GradientBox
// Create a new GradientBox
GradientBox box = new GradientBox(10, 10, 100);
// Render the GradientBox
box.render(matrices);
// Handle mouse input
if (box.onClick(mouseX, mouseY)) {
// The mouse was clicked on the box
}
if (box.onDrag(mouseX, mouseY)) {
// The mouse was dragged on the box
}
if (box.onRelease(mouseX, mouseY)) {
// The mouse was released on the box
}
// Get and set values for the GradientBox
float hue = box.getHue();
float saturation = box.getSaturation();
float value = box.getValue();
box.setHue(hue);
box.setSaturation(saturation);
box.setValue(value);