public class ColorWheel extends Controller<ColorWheel>
autoHeight, autoSpacing, autoWidth
acceptClassList, ACTION_BROADCAST, ACTION_CLICK, ACTION_DRAG, ACTION_ENTER, ACTION_EXIT, ACTION_LEAVE, ACTION_MOVE, ACTION_PRESS, ACTION_PRESSED, ACTION_RELEASE, ACTION_RELEASED, ACTION_RELEASEDOUTSIDE, ACTION_WHEEL, ACTIVE, ALL, ALT, AQUA, ARC, ARRAY, BACKSPACE, BASELINE, BITFONT, BLACK, BLUE, BOOLEAN, BOTTOM, BOTTOM_OUTSIDE, CAPTIONLABEL, CENTER, CHECKBOX, COMMANDKEY, CONTROL, controlEventClass, CUSTOM, DECREASE, DEFAULT, DELETE, DONE, DOWN, DROPDOWN, ELLIPSE, ENTER, ESCAPE, EVENT, eventMethod, FADEIN, FADEOUT, FIELD, FLOAT, FUCHSIA, GRAY, GREEN, grixel, HALF_PI, HIDE, HIGHLIGHT, HORIZONTAL, IDLE, IMAGE, INACTIVE, INCREASE, INTEGER, INVALID, J2D, KEYCONTROL, LEFT, LEFT_OUTSIDE, LIME, LINE, LIST, LOAD, MAROON, MENU, METHOD, MOVE, MULTI, MULTIPLES, NAVY, OLIVE, ORANGE, OVER, P2D, P3D, PI, PRESSED, PRINT, PURPLE, RED, RELEASE, RESET, RIGHT, RIGHT_OUTSIDE, SAVE, SHIFT, SILVER, SINGLE, SINGLE_COLUMN, SINGLE_ROW, SPRITE, standard56, standard58, STRING, SWITCH, SWITCH_BACK, SWITCH_FORE, synt24, TAB, TEAL, THEME_A, THEME_CP52014, THEME_CP5BLUE, THEME_RED, THEME_RETRO, THEME_WHITE, TOP, TOP_OUTSIDE, TRANSITION_WAIT_FADEIN, TREE, TWO_PI, UP, VALUELABEL, VERBOSE, VERTICAL, WAIT, WHITE, YELLOW
Constructor and Description |
---|
ColorWheel(ControlP5 theControlP5,
ControllerGroup<?> theParent,
java.lang.String theName,
int theX,
int theY,
int theWidth,
int theHeight) |
ColorWheel(ControlP5 theControlP5,
java.lang.String theName) |
Modifier and Type | Method and Description |
---|---|
int |
a() |
int |
b() |
int |
g() |
int |
getRGB() |
int |
HSLtoRGB(double[] theHSL) |
int |
HSLtoRGB(double h,
double s,
double l) |
int |
HSVtoRGB(double[] hsv) |
int |
HSVtoRGB(double H,
double S,
double V) |
void |
onDrag() |
void |
onEndDrag() |
void |
onPress() |
void |
onRelease() |
void |
onStartDrag() |
int |
r() |
double[] |
RGBtoHSL(int theRGB) |
double[] |
RGBtoHSL(int theR,
int theG,
int theB) |
double[] |
RGBtoHSV(int c) |
double[] |
RGBtoHSV(int theR,
int theG,
double theB) |
ColorWheel |
scrolled(int theRotationValue) |
ColorWheel |
setAlpha(int theAlpha) |
ColorWheel |
setHSL(double theH,
double theS,
double theL) |
void |
setHue(double theH) |
void |
setLightness(double theL) |
ColorWheel |
setRGB(int theColor) |
void |
setSaturation(double theS) |
ColorWheel |
updateDisplayMode(int theMode) |
ColorWheel |
updateViewMode(int theMode) |
add, addCallback, addListener, align, bringToFront, bringToFront, changeValue, continuousUpdateEvents, draw, getAbsolutePosition, getAddress, getArrayValue, getArrayValue, getBehavior, getCaptionLabel, getColor, getControllerPlugList, getControlWindow, getDecimalPrecision, getDefaultValue, getHeight, getId, getInfo, getLabel, getMax, getMin, getName, getParent, getPickingColor, getPointer, getPosition, getProperty, getProperty, getStringValue, getTab, getValue, getValueLabel, getView, getWidth, getWindow, hide, init, isActive, isBroadcast, isInside, isLabelVisible, isListening, isLock, isMouseOver, isMousePressed, isMoveable, isUpdate, isUserInteraction, isVisible, keyEvent, linebreak, listen, listenerSize, lock, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, plugTo, plugTo, plugTo, plugTo, registerProperty, registerProperty, registerTooltip, remove, remove, removeBehavior, removeCallback, removeCallback, removeListener, removeProperty, removeProperty, setAbsolutePosition, setAddress, setArrayValue, setArrayValue, setBehavior, setBroadcast, setCaptionLabel, setColor, setColorActive, setColorBackground, setColorCaptionLabel, setColorForeground, setColorValueLabel, setDecimalPrecision, setDefaultValue, setGroup, setGroup, setHeight, setId, setImage, setImage, setImages, setImages, setImages, setLabelVisible, setLock, setMax, setMin, setMouseOver, setMousePressed, setMoveable, setParent, setPosition, setPosition, setSize, setSize, setStringValue, setTab, setTab, setUpdate, setUserInteraction, setValue, setValueLabel, setValueSelf, setView, setView, setVisible, setWidth, show, toString, unlock, unplugFrom, unplugFrom, unregisterTooltip, update, updateAbsolutePosition, updateEvents, updateInternalEvents, updateSize
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
parent, setColorLabel, setColorValue, setLabel
public ColorWheel(ControlP5 theControlP5, ControllerGroup<?> theParent, java.lang.String theName, int theX, int theY, int theWidth, int theHeight)
public ColorWheel(ControlP5 theControlP5, java.lang.String theName)
public int a()
public int b()
public int g()
public int getRGB()
public int HSLtoRGB(double[] theHSL)
public int HSLtoRGB(double h, double s, double l)
h
- value between 0 and 360s
- value between 0 and 100l)
- value between 0 and 100alpha
- value between 0 and 1public int HSVtoRGB(double[] hsv)
public int HSVtoRGB(double H, double S, double V)
H
- value between 0-1S
- value between 0-1V
- value between 0-1public void onDrag()
public void onEndDrag()
public void onPress()
public void onRelease()
public void onStartDrag()
public int r()
public double[] RGBtoHSL(int theRGB)
public double[] RGBtoHSL(int theR, int theG, int theB)
theR
- value between 0 and 255theG
- value between 0 and 255theB
- value between 0 and 255public final double[] RGBtoHSV(int c)
public final double[] RGBtoHSV(int theR, int theG, double theB)
theR
- value between 0 and 255theG
- value between 0 and 255theB
- value between 0 and 255public ColorWheel scrolled(int theRotationValue)
public ColorWheel setAlpha(int theAlpha)
public ColorWheel setHSL(double theH, double theS, double theL)
public void setHue(double theH)
public void setLightness(double theL)
public ColorWheel setRGB(int theColor)
public void setSaturation(double theS)
public ColorWheel updateDisplayMode(int theMode)
public ColorWheel updateViewMode(int theMode)
processing library controlP5 by Andreas Schlegel. (c) 2006-2014