Questions tagged as 'java-processing'

1
answer

Calculate tangent line by mouse / mouse coordinate

I want to calculate the tangent line to the points X and Y found by the mouse, limiting itself to the drawn circle ... I only managed to develop until the middle of the program. Can someone save me ?? I'm developing the program in processing...
asked by 13.05.2015 / 20:25
1
answer

Error adding value in array, repeated values

I have two arrays, A and B. I have created 3 functions in which I take a value from the beginning of array A and array B, remove the values, compare the values and if the value of A is greater than B, I add the 2 values at the end of array A,...
asked by 23.03.2018 / 21:59
1
answer

Randomizing images as textures in 3D solids

Well, I have 30 solids and I have a different image for each of them. I created an array for the images, and if I choose to use the same image at all (as I left here in the code, use bandeira [0] ) it runs and everything is fine! I now...
asked by 15.06.2016 / 23:03
1
answer

How to create a dynamic progress bar in R?

To track the processing status in my routines, I use the progress bars of the pbapply package, but I have not found a dynamic way to track more than one process. To illustrate the problem I considered a list containing three elements of d...
asked by 20.03.2016 / 19:27
1
answer

How to check the size of an array of type PFA?

How do I check to see if the array PFA (Partially-full array) is full and new elements can not be added? If it is full, it should return true . boolean estaCheio(int[] data, int size){ ??? } I have 5 possible options. I belie...
asked by 28.11.2017 / 06:31
2
answers

Android - How to access an Activity through a Papplet?

I have a class with extends PApplet and I want to migrate from it to another with extends Activity I tried through Intent but could not. Body of class PApplet: public class CamMain extends PApplet { public void...
asked by 28.07.2016 / 21:00
1
answer

Loops based on a flowchart

How do I write code for a loop based on this flowchart? It has do...while . I need a straightforward answer with nested loops.     
asked by 02.11.2017 / 03:54
2
answers

Help in printing code of repeated characters

I want to print only the characters that are repeated in the string and the number of reps. If it only appears once, I do not want to print it. I need help with the boolean expression. How do I check if the character is repeated? and has...
asked by 03.12.2017 / 06:25
1
answer

How do I move a triangle around the corners of the screen using java?

I'm pretty new to java and I'm working on the project so I have to draw a triangle (which I have to call alice) which is located in the upper left corner of the screen and it has to move straight to the corner top right, then move to the lower r...
asked by 05.02.2017 / 17:52
2
answers

Size of arrays

If the theory says that the size of an array can not be changed, only the elements. Because when I print the size of a the value is 10 and not 5 or 15? int[] a; a = new int[5]; a = new int[10];     
asked by 21.11.2017 / 01:42