Package rope.core
Class BigBang
java.lang.Object
rope.core.Rope
rope.core.BigBang
- All Implemented Interfaces:
R_Constants
,R_Constants_Colour
- Direct Known Subclasses:
R_Apple_Bar
,R_Folder
,R_Graphic
,R_Image
,R_Image_Manager
,R_Input
,R_Voronoi
-
Field Summary
FieldsFields inherited from interface rope.core.R_Constants
ARC, 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, 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, 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 TypeMethodDescriptionfloat
alpha
(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itfloat
blue
(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work on itfloat
brightness
(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itint
color
(float gray) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itint
color
(float gray, float alpha) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itint
color
(float v1, float v2, float v3) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itint
color
(float v1, float v2, float v3, float alpha) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itprocessing.core.PFont
createFont
(String name, float size) processing.core.PFont
createFont
(String name, float size, boolean smooth) processing.core.PFont
createFont
(String name, float size, boolean smooth, char[] charset) float[]
float[]
getColorMode
(boolean print_info_is) float
green
(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work on itfloat
hue
(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itprocessing.core.PImage
int
longest_String
(String[] string_list) int
longest_String
(String[] string_list, int start, int finish) int
longest_String_pixel
(String font_name, String[] string_list, int... size_font) Longest String with String name Fontint
longest_String_pixel
(String font_name, String[] string_list, int[] size_font, int start, int finish) int
longest_String_pixel
(String font_name, String[] string_list, int size_font, int start, int finish) int
longest_String_pixel
(processing.core.PFont font, String[] string_list) Longest String with PFontint
longest_String_pixel
(processing.core.PFont font, String[] string_list, int... size_font) int
longest_String_pixel
(processing.core.PFont font, String[] string_list, int[] size_font, int start, int finish) float
noise
(float x, float y) void
noiseSeed
(int value) void
pass_processing
(processing.core.PApplet pa) must be used for the class child who don't pass the PApplet via the constructor and for any reason must be use few function from BigBang who need the Processing method or function.float
red
(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work on itfloat
saturation
(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont itint
width_char
(char target, int size) int
width_char
(String font_name, char target, int size) int
width_char
(processing.core.PFont pfont, char target, int size) int
width_String
(String target, int size) int
width_String
(String font_name, String target, int size) int
width_String
(processing.core.PFont pfont, String target, int size) 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, 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_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, 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
-
Field Details
-
pa
public processing.core.PApplet pa
-
-
Constructor Details
-
BigBang
public BigBang(processing.core.PApplet pa)
-
-
Method Details
-
pass_processing
public void pass_processing(processing.core.PApplet pa) must be used for the class child who don't pass the PApplet via the constructor and for any reason must be use few function from BigBang who need the Processing method or function.- Parameters:
pa
- pass PApplet Processing
-
get_renderer
-
getColorMode
public float[] getColorMode(boolean print_info_is) - Parameters:
print_info_is
- if it's false there is no information print in the console- Returns:
- array float data color set
-
getColorMode
public float[] getColorMode() -
loadImage
- Parameters:
filename
- , it's String path of your image, by default the app search in in data folder at the root of your code.- Returns:
- PImage result
-
createFont
-
createFont
-
createFont
-
noiseSeed
public void noiseSeed(int value) - Parameters:
value
- int to set seed noise
-
noise
public float noise(float x, float y) - Parameters:
x
- float argumenty
- float argument- Returns:
- float noise value
-
color
public int color(float gray) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
gray
- argument for X, Y, Z component- Returns:
- int color argument
-
color
public int color(float gray, float alpha) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
gray
- argument for X, Y, Z componentalpha
- argument for A component- Returns:
- int color argument
-
color
public int color(float v1, float v2, float v3) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
v1
- float argument for X componentv2
- float argument for Y componentv3
- float argument for Z component- Returns:
- int color argument
-
color
public int color(float v1, float v2, float v3, float alpha) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
v1
- float argument for X componentv2
- float argument for Y componentv3
- float argument for Z componentalpha
- float argument for Alpha component- Returns:
- int color argument
-
alpha
public float alpha(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
value
- to set component- Returns:
- int value of alpha
-
hue
public float hue(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
value
- to set component- Returns:
- float value of component color
-
saturation
public float saturation(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
value
- to set component- Returns:
- float value of component color
-
brightness
public float brightness(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work ont it- Parameters:
value
- to set component- Returns:
- float value of component color
-
red
public float red(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work on it- Parameters:
value
- to set component- Returns:
- float value of component color
-
green
public float green(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work on it- Parameters:
value
- to set component- Returns:
- float value of component color
-
blue
public float blue(int value) This Processing clone method, add check if any PGraphics is active, and if it's a case work on it- Parameters:
value
- to set component- Returns:
- float value of component color
-
longest_String
-
longest_String
-
longest_String_pixel
Longest String with PFont -
longest_String_pixel
-
longest_String_pixel
public int longest_String_pixel(processing.core.PFont font, String[] string_list, int[] size_font, int start, int finish) -
longest_String_pixel
Longest String with String name Font -
longest_String_pixel
-
longest_String_pixel
-
width_String
- Parameters:
target
- String must be computesize
- of font to make the approximation;- Returns:
-
width_String
- Parameters:
pfont
- font to make the approximation computingtarget
- String must be computesize
- of font to make the approximation;- Returns:
-
width_String
- Parameters:
font_name
- font to make the approximation computingtarget
- String must be computesize
- of font to make the approximation;- Returns:
-
width_char
public int width_char(char target, int size) -
width_char
public int width_char(processing.core.PFont pfont, char target, int size) -
width_char
-