public class DwColorPicker extends Object
Modifier and Type | Field and Description |
---|---|
int[] |
colors |
int[][] |
colors_hsb |
int[][] |
colors_rgb |
static DwColorPicker |
LAST_USED |
Constructor and Description |
---|
DwColorPicker(processing.core.PApplet papplet,
int cp_x,
int cp_y,
int cp_w,
int cp_h,
int shades) |
Modifier and Type | Method and Description |
---|---|
void |
cb_mouseEvent(processing.event.MouseEvent me) |
void |
cb_selectedColor() |
void |
display() |
void |
displayHUD() |
void |
dispose() |
void |
draw() |
int |
getColorByIndex(int idx) |
int[] |
getHSBColorByIndex(int idx) |
int |
getNumColorsX() |
int |
getNumColorsY() |
int[] |
getRGBColorByIndex(int idx) |
int |
getSelectedColor() |
int |
getSelectedColorIdx() |
String |
getSelectedHSBasString() |
int[] |
getSelectedHSBColor() |
String |
getSelectedRGBasString() |
int[] |
getSelectedRGBColor() |
int |
h() |
boolean |
inside(int x,
int y) |
void |
mouseEvent(processing.event.MouseEvent me) |
void |
pre() |
int |
selectColor(int canvas_x,
int canvas_y) |
int |
selectColorByCoords(int cx,
int cy) |
int |
selectColorByIndex(int idx) |
int |
selectColorByNormalizedCoords(float cx_norm,
float cy_norm) |
int |
selectColorByRGB(int r,
int g,
int b) |
DwColorPicker |
setAutoDraw(boolean auto_draw) |
void |
setDrawCanvas(processing.core.PGraphics draw_canvas) |
void |
setPosition(int x,
int y) |
int |
w() |
int |
x() |
int |
y() |
public static DwColorPicker LAST_USED
public int[] colors
public int[][] colors_rgb
public int[][] colors_hsb
public DwColorPicker(processing.core.PApplet papplet, int cp_x, int cp_y, int cp_w, int cp_h, int shades)
public void pre()
public void dispose()
public DwColorPicker setAutoDraw(boolean auto_draw)
public void setPosition(int x, int y)
public void mouseEvent(processing.event.MouseEvent me)
public void cb_mouseEvent(processing.event.MouseEvent me)
public void cb_selectedColor()
public boolean inside(int x, int y)
public int selectColor(int canvas_x, int canvas_y)
public int selectColorByCoords(int cx, int cy)
public int selectColorByNormalizedCoords(float cx_norm, float cy_norm)
public int selectColorByIndex(int idx)
public int selectColorByRGB(int r, int g, int b)
public int getSelectedColorIdx()
public int getSelectedColor()
public int[] getSelectedRGBColor()
public int[] getSelectedHSBColor()
public int getColorByIndex(int idx)
public int[] getRGBColorByIndex(int idx)
public int[] getHSBColorByIndex(int idx)
public int x()
public int y()
public int w()
public int h()
public int getNumColorsX()
public int getNumColorsY()
public String getSelectedRGBasString()
public String getSelectedHSBasString()
public void setDrawCanvas(processing.core.PGraphics draw_canvas)
public void draw()
public void display()
public void displayHUD()
Processing library PixelFlow by Thomas Diewald. (c) 2017