public class Rope extends java.lang.Object implements R_Constants, R_Constants_Colour
ARC, BEZIER_VERTEX, BLANK, BOTTOM, BOX, BREAK, CARTESIAN, CENTER, CHAOS, CHORD, CIRCULAR, CLOSE, CLOUD, CORNER, CORNERS, 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, 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, QPI, QUADRATIC_VERTEX, QUARTER_PI, RADIUS, RAND, RECT, REPEAT, RHOMBIC_COSI_DODECAHEDRON_SMALL_LINE, RIGHT, ROOT, ROOT2, RUN, SCALE, SEED, SHAPE, SKY, SOUTH, SOUTH_EAST, SOUTH_WEST, SPAN, SPHERE, SPHERE_HIGH, SPHERE_LOW, SPHERE_MEDIUM, SPIRAL, SQUARE, STAR, STAR_3D, STATIC, SVG, TAU, TETRAHEDRON, TETRAHEDRON_LINE, TEXT, TOP, TREE, TRIANGLE, TWO_PI, UP, VERSION, VERTEX, VERTICAL, VIRUS, WALK, WEST
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 and Description |
---|
Rope() |
Modifier and Type | Method and Description |
---|---|
boolean |
all(boolean... list) |
boolean |
all(bvec b) |
boolean |
any(boolean... list) |
boolean |
any(bvec b) |
java.lang.String |
binary(byte value) |
java.lang.String |
binary(char value) |
java.lang.String |
binary(int value) |
java.lang.String |
binary(int value,
int digits)
Converts an int, byte, char, or color to a
String containing the equivalent binary notation.
|
float |
clamp(float x,
float min,
float max) |
vec2 |
clamp(vec2 x,
vec2 min,
vec2 max) |
vec3 |
clamp(vec3 x,
vec3 min,
vec3 max) |
vec4 |
clamp(vec4 x,
vec4 min,
vec4 max) |
boolean |
equal(float x,
float y) |
boolean |
equal(int x,
int y) |
bvec2 |
equal(ivec2 x,
ivec2 y) |
bvec3 |
equal(ivec3 x,
ivec3 y) |
bvec4 |
equal(ivec4 x,
ivec4 y) |
bvec2 |
equal(vec2 x,
vec2 y) |
bvec3 |
equal(vec3 x,
vec3 y) |
bvec4 |
equal(vec4 x,
vec4 y) |
java.lang.String |
file_name(java.lang.String file_path)
remove the path of your String to return the file name of it.
|
float |
fract(float x) |
vec2 |
fract(vec2 v) |
vec3 |
fract(vec3 v) |
vec4 |
fract(vec4 v) |
java.lang.String |
get_os_family() |
java.lang.String |
get_os()
Check OS
v 0.0.2
|
boolean |
greaterThan(float x,
float y)
|
boolean |
greaterThan(int x,
int y) |
bvec2 |
greaterThan(ivec2 x,
ivec2 y) |
bvec3 |
greaterThan(ivec3 x,
ivec3 y) |
bvec4 |
greaterThan(ivec4 x,
ivec4 y) |
bvec2 |
greaterThan(vec2 x,
vec2 y) |
bvec3 |
greaterThan(vec3 x,
vec3 y) |
bvec4 |
greaterThan(vec4 x,
vec4 y) |
boolean |
greaterThanEqual(float x,
float y) |
boolean |
greaterThanEqual(int x,
int y) |
bvec2 |
greaterThanEqual(ivec2 x,
ivec2 y) |
bvec3 |
greaterThanEqual(ivec3 x,
ivec3 y) |
bvec4 |
greaterThanEqual(ivec4 x,
ivec4 y) |
bvec2 |
greaterThanEqual(vec2 x,
vec2 y) |
bvec3 |
greaterThanEqual(vec3 x,
vec3 y) |
bvec4 |
greaterThanEqual(vec4 x,
vec4 y) |
java.lang.String |
hex(byte value) |
java.lang.String |
hex(char value) |
java.lang.String |
hex(int value) |
java.lang.String |
hex(int value,
int digits) |
int |
index_pixel_array(int x,
int y,
int width) |
boolean |
lessThan(float x,
float y) |
boolean |
lessThan(int x,
int y) |
bvec2 |
lessThan(ivec2 x,
ivec2 y) |
bvec3 |
lessThan(ivec3 x,
ivec3 y) |
bvec4 |
lessThan(ivec4 x,
ivec4 y) |
bvec2 |
lessThan(vec2 x,
vec2 y) |
bvec3 |
lessThan(vec3 x,
vec3 y) |
bvec4 |
lessThan(vec4 x,
vec4 y) |
boolean |
lessThanEqual(float x,
float y) |
boolean |
lessThanEqual(int x,
int y) |
bvec2 |
lessThanEqual(ivec2 x,
ivec2 y) |
bvec3 |
lessThanEqual(ivec3 x,
ivec3 y) |
bvec4 |
lessThanEqual(ivec4 x,
ivec4 y) |
bvec2 |
lessThanEqual(vec2 x,
vec2 y) |
bvec3 |
lessThanEqual(vec3 x,
vec3 y) |
bvec4 |
lessThanEqual(vec4 x,
vec4 y) |
float |
map(float value,
float start1,
float stop1,
float start2,
float stop2)
map method
|
float |
max(float... list) |
float |
min(float... list) |
float |
mix(float x,
float y,
float a) |
vec2 |
mix(vec2 x,
vec2 y,
vec2 a) |
vec3 |
mix(vec3 x,
vec3 y,
vec3 a) |
vec4 |
mix(vec4 x,
vec4 y,
vec4 a) |
float |
mod(float x,
float y) |
ivec2 |
mod(ivec2 x,
ivec2 y) |
ivec3 |
mod(ivec3 x,
ivec3 y) |
ivec4 |
mod(ivec4 x,
ivec4 y) |
vec2 |
mod(vec2 x,
vec2 y) |
vec3 |
mod(vec3 x,
vec3 y) |
vec4 |
mod(vec4 x,
vec4 y) |
boolean |
only(boolean... list) |
boolean |
only(bvec b) |
void |
print_err_tempo(int tempo,
java.lang.Object... obj) |
void |
print_err(java.lang.Object... obj) |
void |
print_out(java.lang.Object... obj) |
void |
print_tempo(int tempo,
java.lang.Object... obj) |
float |
random_next_gaussian(float range) |
float |
random_next_gaussian(float range,
int n) |
float |
random_next_gaussian(int n) |
float |
random(float low,
float high) |
float |
sign(float x) |
int |
sign(int x) |
ivec2 |
sign(ivec2 x) |
ivec3 |
sign(ivec3 x) |
ivec4 |
sign(ivec4 x) |
vec2 |
sign(vec2 x) |
vec3 |
sign(vec3 x) |
vec4 |
sign(vec4 x) |
float |
smoothstep(float edge0,
float edge1,
float x) |
vec2 |
smoothstep(vec2 edge0,
vec2 edge1,
vec2 x) |
vec3 |
smoothstep(vec3 edge0,
vec3 edge1,
vec3 x) |
vec4 |
smoothstep(vec4 edge0,
vec4 edge1,
vec4 x) |
java.lang.String[] |
split(java.lang.String value,
char delim) |
java.lang.String[] |
split(java.lang.String value,
java.lang.String delim) |
float |
step(float edge,
float x) |
vec2 |
step(vec2 edge,
vec2 x) |
vec3 |
step(vec3 edge,
vec3 x) |
vec4 |
step(vec4 edge,
vec4 x) |
float |
truncate(float x) |
float |
truncate(float x,
int num) |
int |
unbinary(java.lang.String value) |
int |
unhex(java.lang.String value)
Converts a Stringrepresentation of a hexadecimal number to its
equivalent integer value.
|
public float map(float value, float start1, float stop1, float start2, float stop2)
value
- value must be computestart1
- min range value of the starting fieldstop1
- max range value of the starting fieldstart2
- min range value of the final fieldstop2
- max range value of the final fieldpublic float random(float low, float high)
low
- define value min for the randomhigh
- define value max for the randompublic float random_next_gaussian(int n)
n
- the num of operation must iterate each operation is mult by the previous resultpublic float random_next_gaussian(float range)
range
- define value max for the randompublic float random_next_gaussian(float range, int n)
range
- represente the max value possible from 0 to this value.n
- the num of operation must iterate each operation is mult by the previous resultpublic float max(float... list)
list
- list of arguments must be sortedpublic float min(float... list)
list
- list of arguments must be sortedpublic float mix(float x, float y, float a)
x
- elem to mixy
- elem to mixa
- mixer elementpublic float fract(float x)
x
- value to fractpublic float sign(float x)
x
- value who find signpublic int sign(int x)
public float step(float edge, float x)
x
- value to smoothedge
- the smooth edgepublic float smoothstep(float edge0, float edge1, float x)
x
- value to smoothedge0
- the smooth first edgeedge1
- the smooth second edgepublic float mod(float x, float y)
x
- value to mody
- value to modpublic float clamp(float x, float min, float max)
x
- value to clampmin
- the min value availablemax
- the max value availablepublic boolean equal(float x, float y)
x
- float value to testy
- float value to testpublic boolean equal(int x, int y)
public boolean lessThan(float x, float y)
x
- float value to testy
- float value to testpublic boolean lessThan(int x, int y)
public boolean greaterThan(float x, float y)
x
- float value to testy
- float value to testpublic boolean greaterThan(int x, int y)
public boolean greaterThanEqual(float x, float y)
x
- float value to testy
- float value to testpublic boolean greaterThanEqual(int x, int y)
public boolean lessThanEqual(float x, float y)
x
- float value to testy
- float value to testpublic boolean lessThanEqual(int x, int y)
public boolean all(bvec b)
b
- bvec value to testpublic boolean all(boolean... list)
list
- public boolean any(bvec b)
b
- bvec value to test
https://www.khronos.org/registry/OpenGL/specs/glpublic boolean any(boolean... list)
list
- boolean list value to testpublic boolean only(bvec b)
b
- bvec value to testpublic boolean only(boolean... list)
public int index_pixel_array(int x, int y, int width)
x
- coordinate xy
- coordinate ywidth
- the width of you 2D array pixelpublic float truncate(float x)
public float truncate(float x, int num)
x
- value to worknum
- after coma to displaypublic java.lang.String hex(byte value)
public java.lang.String hex(char value)
public java.lang.String hex(int value)
public java.lang.String hex(int value, int digits)
value
- value to convertdigits
- the number of digits (maximum 8)public int unhex(java.lang.String value)
value
- value to convertpublic java.lang.String binary(byte value)
public java.lang.String binary(char value)
public java.lang.String binary(int value)
public java.lang.String binary(int value, int digits)
value
- value to convertdigits
- number of digits to returnpublic int unbinary(java.lang.String value)
public java.lang.String[] split(java.lang.String value, char delim)
value
- delim
- public java.lang.String[] split(java.lang.String value, java.lang.String delim)
value
- is the sentence must be spiteddelim
- is a separatorpublic java.lang.String file_name(java.lang.String file_path)
file_path
- public void print_out(java.lang.Object... obj)
obj
- public void print_err(java.lang.Object... obj)
public void print_err_tempo(int tempo, java.lang.Object... obj)
public void print_tempo(int tempo, java.lang.Object... obj)
public java.lang.String get_os()
public java.lang.String get_os_family()