Package rope.colour
Class R_Colour
java.lang.Object
rope.core.Rope
rope.colour.R_Colour
- All Implemented Interfaces:
R_Constants
,R_Constants_Colour
-
Field Summary
Fields inherited from interface rope.core.R_Constants
ARC, BEGIN, BEZIER_VERTEX, BLANK, BOTTOM, BOX, BREAK, CARTESIAN, CENTER, CHAOS, CHOICE, 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, END, EQUATION, EULER, FIRST, FIT, FLOWER, FLUID, FX2D, G, GOLD_ANGLE, GOLD_NUMBER, GRAVITY, HALF, HALF_PI, HENDECAGON, HEPTAGON, HEXAGON, HORIZONTAL, HOUSE, HPI, ICOSI_DODECAHEDRON_LINE, IMAGE, JAVA2D, LANDSCAPE, LAST, LEAF, LEFT, LINE, LINEAR, MAD, MAGNETIC, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MIX, NEXT, NONAGON, NONE, NORMAL, NORTH, NORTH_EAST, NORTH_WEST, NOTCH, NOTHING, NULL, OCTOGON, OCTOHEDRON_LINE, OPEN, ORDER, P2D, P3D, PDF, PENTAGON, PERLIN, PHI, PI, PIE, PIXEL, POINT, POLAR, POLYGON, PORTRAIT, POW, PREVIOUS, QPI, QUADRATIC_VERTEX, QUARTER_PI, RADIUS, RAND, RECT, REPEAT, RHOMBIC_COSI_DODECAHEDRON_SMALL_LINE, RIGHT, ROOT, ROOT2, RUN, SCALE, SEED, SHAPE, SIDE, SIN, SKY, SOUTH, SOUTH_EAST, SOUTH_WEST, SPAN, SPHERE, SPHERE_HIGH, SPHERE_LOW, SPHERE_MEDIUM, SPIRAL, SQUARE, STAR, STAR_3D, START, STATIC, STOP, 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, ABYSSE, 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, CACHOU, CAERULEUM, CAFE, CANARD, CANELLE, CAPUCINE, CARMIN, CARMINE, CAROTTE, CELESTE, CERISE, CHAMOIS, CHARTREUSE, CHOCOLAT, CIEL, CITROUILLE, COBALT, COFFEE, COLOMBIN, CORAIL, CYAN, ELEPHANT, 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, TENEBRE, TILLEUL, TURQUOISE, VERMILLON, VERT, VERT_D_EAU, VERT_DE_GRIS, VESSIE, VIOLET, WHITE, YELLOW, ZINZOLIN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int... colour) Add list of colour to the first palettevoid
add
(int index, int... colour) void
void
void
float[]
alpha()
float[]
float[]
blue()
float[]
float[]
float[]
brightness
(String name) void
clear()
void
boolean
create a new empty paletteboolean
int[]
get()
int[]
get
(int group) int[]
int
float
float
float
get_brightness
(String name, int target) int
get_colour
(String name, int target) Deprecated.instread use int get(String name, int target);int
GETget_current_rgba
(String name, int target) get_current_rgba_impl
(int c) float
get_hsb_impl
(int c) get_hsba_impl
(int c) float
int
get_master
(String name) String[]
float
get_rgb_impl
(int c) float
get_saturation
(String name, int target) int[]
gradient
(int colour_a, int colour_b, int num) float[]
green()
float[]
vec3[]
hsb()
vec3[]
vec4[]
hsba()
vec4[]
float[]
hue()
float[]
void
kill()
remove all palettesvoid
int
rand()
int
float[]
red()
float[]
void
vec3[]
rgb()
vec3[]
vec4[]
rgba()
vec4[]
float[]
float[]
saturation
(String name) int
void
int
size()
int
size
(int group) int
Methods inherited from class rope.core.Rope
abs, abs, abs, abs, abs, abs, abs, abs, add, add, add, add, add, add, all, all, any, any, atan, barycenter, barycenter, barycenter, binary, binary, binary, binary, ceil, ceil, ceil, ceil, clamp, clamp, clamp, clamp, compare, compare, compare, compare, compare, compare, compare, compare, constrain, constrain, cos, cross, d_bell, d_cbrt, d_cos, d_normal, d_pow, d_sigmoid, d_sin, d_sqrt, dist, dist, dist, dist, dist, div, div, div, div, div, div, equal, equal, equal, equal, equal, equal, equal, equal, extension, extension_is, file_name, floor, floor, floor, floor, fract, fract, fract, fract, get_os, get_os_family, get_renderer, getColorMode, getColorMode, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, hex, hex, hex, hex, in_line, in_line, in_polygon, in_polygon, in_polygon, in_polygon, in_segment, in_segment, index_pixel_array, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, map, map, map, map, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, mix, mix, mix, mix, mod, mod, mod, mod, mod, mod, mod, mult, mult, mult, mult, mult, mult, only, only, pow, print_array, print_err, print_err_tempo, print_out, print_tempo, projection, projection, projection, projection, projection, projection, projection, projection, random, random, random_next_gaussian, random_next_gaussian, random_next_gaussian, reverse, reverse, reverse, reverse, reverse, reverse, reverse, reverse, reverse, round, round, round, round, sign, sign, sign, sign, sign, sign, sign, sign, sin, smoothstep, smoothstep, smoothstep, smoothstep, split, split, sq, sqrt, step, step, step, step, sub, sub, sub, sub, sub, sub, to_cartesian_2D, to_cartesian_2D, to_cartesian_2D, to_cartesian_3D, to_cartesian_3D, to_cartesian_3D, truncate, truncate, unbinary, unhex
-
Constructor Details
-
R_Colour
public R_Colour(processing.core.PApplet pa) -
R_Colour
public R_Colour(processing.core.PApplet pa, int... list_colour) -
R_Colour
-
R_Colour
-
-
Method Details
-
create
create a new empty palette- Parameters:
name
-
-
create
- Parameters:
name
-img
-num
-- Returns:
-
add
public void add(int index, int... colour) -
add
- Parameters:
name
- name of the palette, if the palette don't exist a new one is createdcolour
- list of int colour must be add to the palette
-
add
public void add(int... colour) Add list of colour to the first palette- Parameters:
colour
- list of int colour added to first palette.
-
add
public void add(String name, int colour_ref, int num, int type, float range_x, float range_y, float range_z) -
add
-
set
-
kill
public void kill()remove all palettes -
clear
public void clear() -
clear
-
remove
-
size_palette
public int size_palette()- Returns:
- the num / quantity of palette vailable
-
print_palette
public void print_palette() -
size
public int size() -
size
public int size(int group) -
select
- Parameters:
name
-target
-- Returns:
- the selected color and add this one like a current colour
-
rand
public int rand()- Returns:
- a random color from random palette and select this one as a current colour
-
rand
- Parameters:
list_name
- array of pallete name- Returns:
- a random color from the named palette and select this one as a current colour, if nothing match the value 0 is returned
-
gradient
public int[] gradient(int colour_a, int colour_b, int num) -
get_current
public int get_current()GET -
get_names
- Returns:
- the list name of palette
-
get
- Parameters:
name
- of the colour palette- Returns:
- the int array colours of this palette
-
get
public int[] get(int group) - Parameters:
group
- of the colour palette- Returns:
- the int array colours of this palette group
-
get
- Parameters:
name
- of the colour palettetarget
- target colour rank in the selected palette- Returns:
-
get_colour
Deprecated.instread use int get(String name, int target);- Parameters:
name
- of the colour palettetarget
- target colour rank in the selected palette- Returns:
-
get_master
-
get_hue
-
get_saturation
-
get_brightness
-
get_red
-
get_green
-
get_blue
-
get_alpha
-
get_current_hsb
-
get_hsb
-
get_hsb_impl
-
get_current_hsba
-
get_hsba
-
get_hsba_impl
-
get_current_rgb
-
get_rgb
-
get_rgb_impl
-
get_current_rgba
-
get_current_rgba
-
get_current_rgba_impl
-
get
public int[] get()- Returns:
- all argument color of all the lists
-
hue
public float[] hue() -
saturation
public float[] saturation() -
brightness
public float[] brightness() -
red
public float[] red() -
green
public float[] green() -
blue
public float[] blue() -
alpha
public float[] alpha() -
hsb
-
hsba
-
rgb
-
rgba
-
hue
-
saturation
-
brightness
-
red
-
green
-
blue
-
alpha
-
hsb
-
rgb
-
hsba
-
rgba
-