Package rope.gui
Class Crope
java.lang.Object
rope.core.Rope
rope.core.BigBang
rope.core.R_Graphic
rope.gui.Crope
- All Implemented Interfaces:
R_Constants
,R_Constants_Colour
- Direct Known Subclasses:
R_Board
,R_Button
,R_Dropdown
,R_Palette
,R_Palette_Selector
,R_Slider
-
Field Summary
Fields inherited from interface rope.core.R_Constants
ARC, BEZIER_VERTEX, BLANK, BOTTOM, BOX, BREAK, CARTESIAN, CENTER, CHAOS, CHORD, CIRCULAR, CLOSE, CLOUD, CORNER, CORNERS, COS, CROSS, CROSS_BOX_2, CROSS_BOX_3, CROSS_RECT, CUBE_LINE, CURVE_VERTEX, DECAGON, DIAGONAL, DIAMETER, DODECAGON, DOWN, DRAW, DXF, DYNAMIC, EAST, ELLIPSE, EQUATION, EULER, FIT, FLOWER, FLUID, FX2D, G, GOLD_ANGLE, GOLD_NUMBER, GRAVITY, HALF_PI, HENDECAGON, HEPTAGON, HEXAGON, HORIZONTAL, HOUSE, HPI, ICOSI_DODECAHEDRON_LINE, IMAGE, JAVA2D, LANDSCAPE, LEAF, LEFT, LINE, LINEAR, MAD, MAGNETIC, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MIX, NONAGON, NONE, NORMAL, NORTH, NORTH_EAST, NORTH_WEST, NOTHING, NULL, OCTOGON, OCTOHEDRON_LINE, OPEN, ORDER, P2D, P3D, PDF, PENTAGON, PERLIN, PHI, PI, PIE, PIXEL, POINT, POLAR, POLYGON, PORTRAIT, POW, QPI, QUADRATIC_VERTEX, QUARTER_PI, RADIUS, RAND, RECT, REPEAT, RHOMBIC_COSI_DODECAHEDRON_SMALL_LINE, RIGHT, ROOT, ROOT2, RUN, SCALE, SEED, SHAPE, SIN, SKY, SOUTH, SOUTH_EAST, SOUTH_WEST, SPAN, SPHERE, SPHERE_HIGH, SPHERE_LOW, SPHERE_MEDIUM, SPIRAL, SQUARE, STAR, STAR_3D, STATIC, SVG, TAN, TAU, TETRAHEDRON, TETRAHEDRON_LINE, TEXT, TOP, TREE, TRIANGLE, TWO_PI, UP, VERSION, VERTEX, VERTICAL, VIRUS, WALK, WEST
Fields inherited from interface rope.core.R_Constants_Colour
ABRICOT, ACAJOU, ALPHA, AMARANTE, AMBRE, ANSI_BLACK, ANSI_BLACK_BACKGROUND, ANSI_BLUE, ANSI_BLUE_BACKGROUND, ANSI_CYAN, ANSI_CYAN_BACKGROUND, ANSI_GREEN, ANSI_GREEN_BACKGROUND, ANSI_PURPLE, ANSI_PURPLE_BACKGROUND, ANSI_RED, ANSI_RED_BACKGROUND, ANSI_RESET, ANSI_WHITE, ANSI_WHITE_BACKGROUND, ANSI_YELLOW, ANSI_YELLOW_BACKGROUND, ARGB, ARGENT, AUBERGINE, AZUR, BIS, BISTRE, BLACK, BLANC, BLEU, BLOND, BLOOD, BLUE, BOUTEILLE, BRIGHTNESS, BRIQUE, BRONZE, BROWN, CAERULEUM, CAFE, CANARD, CANELLE, CAPUCINE, CARMIN, CARMINE, CAROTTE, CELESTE, CERISE, CHAMOIS, CHARTREUSE, CHOCOLAT, CIEL, CITROUILLE, COBALT, COFFEE, COLOMBIN, CORAIL, CYAN, EVEQUE, FRANCE, FUSCHIA, GOLD, GRADIENT, GRADIENT_BRIGHTNESS, GRADIENT_HUE, GRADIENT_SATURATION, GRAY, GRAY_MEDIUM, GREEN, GRENAT, GRIS, GRIS_MOYEN, GUEULES, HSB, HUE, IMPERIAL, JAUNE, LAPIS_LAZULI, LAVANDE, LILAS, LIME, LIN, LUNE, MAGENTA, MANDARINE, MARRON, MAUVE, MIMOSA, MOON, MOUNTBATTEN, NANKIN, NAPLE, NOIR, NOISETTE, NUIT, OCRE, OCRE_JAUNE, OCRE_ROUGE, OLIVE, OR, ORANGE, OUTREMER, PALETTE, PAYNE, PERLE, PERROQUET, PINK, PISTACHE, POURPRE, PRUNE, PURPLE, RAINBOW, RED, RGB, RGBA, ROSE, ROUGE, SANG, SAPIN, SATURATION, SAUGE, SEPIA, SHAKUDOU, SILVER, SINOPLE, SMALT, SOURIS, SPECTRUM, TAUPE, TILLEUL, TURQUOISE, VERMILLON, VERT, VERT_D_EAU, VERT_DE_GRIS, VESSIE, VIOLET, WHITE, YELLOW, ZINZOLIN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
bottom()
float
get()
float
get
(int index) float[]
get_all()
int
get_dna()
processing.core.PFont
get_font()
int
int
get_id()
int
LABELget_name()
int
get_rank()
int
get_type()
boolean
inside()
boolean
boolean
is_done()
int
left()
opengl
(boolean is) Use this option when you create a faster color slider, very usefull with big GUI or with gradient one.pos()
pos
(float x, float y) int
right()
set_align_label_name
(int align) set_align_label_value
(int align) set_aspect
(int fill_colour, int stroke_colour, float thickness) set_aspect
(int fill_colour_in, int fill_colour_out, int stroke_colour_in, int stroke_colour_out, float thickness) set_bri
(float bri) set_fill
(int colour) set fill color of your guiset_fill
(int colour_in, int colour_out) set fill color of your guiset_fill_label
(int colour) set_fill_label
(int colour_in, int colour_out) set_font
(processing.core.PFont font) set_font_size
(int font_size) set_hue
(float hue) set_id
(int id) set_id_midi
(int id_midi) set_mode
(int mode) You can select different palette mode, with Processing classic renderer only mode 0 is available.set_pos_label
(float x, float y) set_pos_label
(vec2 pos) set_pos_value
(float x, float y) set_pos_value
(vec2 pos) VALUEset_rank
(int rank) set_rollover_type
(int rollover_type) set_root
(float root) this function is used when you want create a gui color to set it at the specific start, to use with a color wheelset_rounded
(float rounded) ASPECTset_sat
(float sat) set_stroke
(int colour) set stroke color of your guiset_stroke
(int colour_in, int colour_out) set stroke color in and out of your guiset_thickness
(float thickness) set_thickness() is like strokeWeightvoid
void
void
size()
size
(float size) size
(float w, float h) int
top()
void
update()
Methods inherited from class rope.core.R_Graphic
arc, arc, arc, arc, aspect, aspect, beginContour, beginShape, beginShape, bezierVertex, bezierVertex, bezierVertex, bezierVertex, bezierVertex, bezierVertex, box, box, box, colorMode, colorMode, colorMode, colorMode, colorMode, colorMode, colorMode, createGraphics, curveVertex, curveVertex, curveVertex, curveVertex, curveVertex, curveVertex, ellipse, ellipse, ellipse, ellipse, ellipseMode, ellipseMode, endContour, endShape, endShape, fill, fill, fill, fill, fill, fill, get, get_renderer, get_renderer, image, image, image, image, index_pixel_array, line, line, line, line, loadShader, noFill, noStroke, pass_graphic, point, point, point, point, pop, popMatrix, push, pushMatrix, quadraticVertex, quadraticVertex, quadraticVertex, quadraticVertex, quadraticVertex, quadraticVertex, rect, rect, rect, rect, rect, rect, rectMode, rectMode, renderer_P2D, renderer_P3D, rotate, rotateX, rotateXY, rotateXYZ, rotateXZ, rotateY, rotateYZ, rotateZ, scale, scale, scale, set, set, set, shader, shearX, shearY, sphere, sphereDetail, sphereDetail, square, square, stroke, stroke, stroke, stroke, stroke, stroke, strokeWeight, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, text, textAlign, textAlign, textFont, textFont, textSize, thickness, translate, translate, translate, triangle, triangle, triangle, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex, vertex
Methods inherited from class rope.core.BigBang
alpha, blue, brightness, color, color, color, color, createFont, createFont, createFont, getColorMode, getColorMode, green, hue, loadImage, longest_String, longest_String, longest_String_pixel, longest_String_pixel, longest_String_pixel, longest_String_pixel, longest_String_pixel, longest_String_pixel, noise, noiseSeed, pass_processing, red, saturation, width_char, width_char, width_char, width_String, width_String, width_String
Methods inherited from class rope.core.Rope
all, all, any, any, binary, binary, binary, binary, clamp, clamp, clamp, clamp, equal, equal, equal, equal, equal, equal, equal, equal, extension, extension_is, file_name, fract, fract, fract, fract, get_os, get_os_family, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, hex, hex, hex, hex, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, map, max, min, mix, mix, mix, mix, mod, mod, mod, mod, mod, mod, mod, only, only, print_err, print_err_tempo, print_out, print_tempo, random, random_next_gaussian, random_next_gaussian, random_next_gaussian, sign, sign, sign, sign, sign, sign, sign, sign, smoothstep, smoothstep, smoothstep, smoothstep, split, split, step, step, step, step, truncate, truncate, unbinary, unhex
-
Constructor Details
-
Crope
-
Crope
-
Crope
-
-
Method Details
-
update
public void update() -
show_struc
public void show_struc() -
get
public float get() -
get
public float get(int index) -
get_all
public float[] get_all() -
get_dna
public int get_dna() -
set_type
- Parameters:
type
- set the type, but that's can broken few routine function for event mangement. So use with precaution- Returns:
- this.
-
get_type
-
is_active
public boolean is_active()- Returns:
- true when the gui is active
-
is_done
public boolean is_done()- Returns:
- true when the action gui is done
-
pos
- Parameters:
x
-y
-- Returns:
-
pos
- Parameters:
pos
-- Returns:
-
pos
-
top
public int top() -
bottom
public int bottom() -
left
public int left() -
right
public int right() -
size
- Parameters:
size
-- Returns:
-
size
- Parameters:
w
-h
-- Returns:
-
size
- Parameters:
size
-- Returns:
-
size
-
set_root
this function is used when you want create a gui color to set it at the specific start, to use with a color wheel- Parameters:
root
-- Returns:
-
set_hue
-
set_sat
-
set_bri
-
opengl
Use this option when you create a faster color slider, very usefull with big GUI or with gradient one. ACHTUNG: This option can be only use in P2D or P3D Processing context.- Parameters:
is
-- Returns:
-
set_mode
You can select different palette mode, with Processing classic renderer only mode 0 is available. mode 0, GRADIENT : hue range mode 3,4,5 RGB range mode 10, RAINDOW, HUE, SPECTRUM; mode 10, 11,12, 13 all color hsb range.- Parameters:
mode
- give the opportunity to change the color randering- Returns:
-
set_fill
set fill color of your gui- Parameters:
colour
-- Returns:
-
set_fill
set fill color of your gui- Parameters:
colour_in
-colour_out
-- Returns:
-
set_stroke
set stroke color of your gui- Parameters:
colour
-- Returns:
-
set_stroke
set stroke color in and out of your gui- Parameters:
colour_in
-colour_out
-- Returns:
-
set_thickness
set_thickness() is like strokeWeight- Parameters:
thickness
-- Returns:
-
set_rounded
ASPECT -
set_aspect
-
set_aspect
public Crope set_aspect(int fill_colour_in, int fill_colour_out, int stroke_colour_in, int stroke_colour_out, float thickness) -
get_label
LABEL -
set_fill_label
-
set_fill_label
-
set_align_label_name
-
set_align_label_value
-
set_label
-
set_label
-
set_label
-
set_pos_label
-
set_pos_label
-
show_label
public void show_label() -
set_pos_value
VALUE -
set_pos_value
-
show_value
public void show_value() -
get_font
public processing.core.PFont get_font()- Returns:
- the current font of crope
-
set_font
-
set_font
-
get_font_size
public int get_font_size()- Returns:
- size of crope label
-
set_font_size
-
get_rollover_type
public int get_rollover_type()- Returns:
- the type of rollover
-
set_rollover_type
-
get_id_midi
public int get_id_midi()- Returns:
- int id_midi of crope
-
set_id_midi
-
get_id
public int get_id()- Returns:
- int id of crope
-
set_id
-
get_rank
public int get_rank()- Returns:
- int rank of crope
-
set_rank
-
get_name
- Returns:
- String name of crope
-
set_name
-
inside
public boolean inside()- Returns:
- true if the cursor is inside the crope shape
-