# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=127

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 128

---

## [I don't even know how to ask for help with this i must just be missing something obvious](https://discourse.processing.org/t/i-dont-even-know-how-to-ask-for-help-with-this-i-must-just-be-missing-something-obvious/30604)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 7\
**Last updated:** [June 9, 2021, 5:27pm UTC](https://discourse.processing.org/t/i-dont-even-know-how-to-ask-for-help-with-this-i-must-just-be-missing-something-obvious/30604 "2021-06-09T17:27:47Z")

</div>

???

---

## [Magnifier please help : (](https://discourse.processing.org/t/magnifier-please-help/30602)

<div class="topic-metadata">

**Author:** [@Goku557](https://discourse.processing.org/u/Goku557)\
**Replies:** 10\
**Last updated:** [June 9, 2021, 4:58pm UTC](https://discourse.processing.org/t/magnifier-please-help/30602 "2021-06-09T16:58:09Z")

</div>

Hey so i am trying to magnify a 5x5 area around the mouse cursour and then draw that area in a rect. Basicaly i want to get the surround pixels at mouse x and mouse Y . put those pixels into an array? use that array t…

---

## [Pong - Ball Bouncing Bug](https://discourse.processing.org/t/pong-ball-bouncing-bug/30599)

<div class="topic-metadata">

**Author:** [@SaftigMelo](https://discourse.processing.org/u/SaftigMelo)\
**Replies:** 7\
**Last updated:** [June 9, 2021, 11:06am UTC](https://discourse.processing.org/t/pong-ball-bouncing-bug/30599 "2021-06-09T11:06:44Z")

</div>

Hi, in school we are making a Pong Game. I only have a problem with the bouncing when the ball touches the paddle on one of the edges the ball gets stuck in the paddle. Bounce Method: void testCollision(Ball ball) …

---

## [How do I save an array of integers to json object/array](https://discourse.processing.org/t/how-do-i-save-an-array-of-integers-to-json-object-array/30583)

<div class="topic-metadata">

**Author:** [@gerrikoio](https://discourse.processing.org/u/gerrikoio)\
**Replies:** 2\
**Last updated:** [June 9, 2021, 9:06am UTC](https://discourse.processing.org/t/how-do-i-save-an-array-of-integers-to-json-object-array/30583 "2021-06-09T09:06:16Z")

</div>

If I had an array of integers, like so: int array\[\] = {1,2,3,4,5}; How would I convert this array to JSON so that it is in this format { "array" : \[ 1, 2, 3, 4, 5 \] } I am not sure what’s best inside my Processing(J…

---

## [MetaBalls from shaderToy](https://discourse.processing.org/t/metaballs-from-shadertoy/30414)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 6\
**Last updated:** [June 9, 2021, 7:29am UTC](https://discourse.processing.org/t/metaballs-from-shadertoy/30414 "2021-06-09T07:29:52Z")

</div>

Hello, I’m trying to use this metaballs shaders found on shaderToy with no results. I’ve got a black screen with this error : OpenGL error 1282 at bot endDraw(): invalid operation I adapt a little bit the code but I…

---

## [Looking for help working with CSV code or excel](https://discourse.processing.org/t/looking-for-help-working-with-csv-code-or-excel/28718)

<div class="topic-metadata">

**Author:** [@ADIYAIR](https://discourse.processing.org/u/ADIYAIR)\
**Replies:** 21\
**Last updated:** [June 9, 2021, 7:18am UTC](https://discourse.processing.org/t/looking-for-help-working-with-csv-code-or-excel/28718 "2021-06-09T07:18:35Z")

</div>

Looking for help or examples working with CSV code or excel to create visual pattern

---

## [How to find automous agents within range](https://discourse.processing.org/t/how-to-find-automous-agents-within-range/30575)

<div class="topic-metadata">

**Author:** [@Goku557](https://discourse.processing.org/u/Goku557)\
**Replies:** 3\
**Last updated:** [June 8, 2021, 11:07pm UTC](https://discourse.processing.org/t/how-to-find-automous-agents-within-range/30575 "2021-06-08T23:07:42Z")

</div>

\[sloved\] \` void seek(PVector target) { // only run if mousecursor is pressed if (mousePressed) { // if creatures are nerby target float nerby=(10); for (Creature c : creatures) { float …

---

## [I don't find the saveFrame file (set its path)](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 6\
**Last updated:** [June 8, 2021, 9:01pm UTC](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579 "2021-06-08T21:01:12Z")

</div>

I was looking for a way to save the image, so I found this sample code. I run it, but no file were saved on my hard drive. What am I missing? int x = 0; void draw() { background(204); if (x \< 100) { line(x, 0, x…

---

## [Rolling boulder code problem (complex animation)](https://discourse.processing.org/t/rolling-boulder-code-problem-complex-animation/30571)

<div class="topic-metadata">

**Author:** [@norm1](https://discourse.processing.org/u/norm1)\
**Replies:** 3\
**Last updated:** [June 8, 2021, 8:34pm UTC](https://discourse.processing.org/t/rolling-boulder-code-problem-complex-animation/30571 "2021-06-08T20:34:55Z")

</div>

Doing an animation that requires a boulder to roll down a hill, then go to the right of the screen, then go back left and up the hill and stop. But once I get to the BoulderRollRight I cant go roll the boulder left becau…

---

## [Simulating rear lights of a car](https://discourse.processing.org/t/simulating-rear-lights-of-a-car/30533)

<div class="topic-metadata">

**Author:** [@Th3cG](https://discourse.processing.org/u/Th3cG)\
**Replies:** 5\
**Last updated:** [June 8, 2021, 6:55pm UTC](https://discourse.processing.org/t/simulating-rear-lights-of-a-car/30533 "2021-06-08T18:55:45Z")

</div>

Hi there, I wrote this messy code intended to simulate the behaviour of the rear lights of a car: //introducing variables //n manages the timing for left and right arrows int n; //m and on manage the timing for emerge…

---

## [Catching images](https://discourse.processing.org/t/catching-images/30565)

<div class="topic-metadata">

**Author:** [@processinggg](https://discourse.processing.org/u/processinggg)\
**Replies:** 5\
**Last updated:** [June 8, 2021, 9:11am UTC](https://discourse.processing.org/t/catching-images/30565 "2021-06-08T09:11:20Z")

</div>

Hello, I have difficulty with following code in Processing, I don’t know how to make the bar catch the images/objects that are falling from above. Here is the code float x = 100; float y = 500; Balken balken; //On…

---

## [saveStrings creates a new file when exported application](https://discourse.processing.org/t/savestrings-creates-a-new-file-when-exported-application/30526)

<div class="topic-metadata">

**Author:** [@abatllei](https://discourse.processing.org/u/abatllei)\
**Replies:** 4\
**Last updated:** [June 7, 2021, 8:10pm UTC](https://discourse.processing.org/t/savestrings-creates-a-new-file-when-exported-application/30526 "2021-06-07T20:10:19Z")

</div>

I’m programming a game where I want to save the final points, like a highscore. Same problem as this topic: https://discourse.processing.org/t/save-string-to-txt-file-when-the-program-is-a-standalone-application/26898?u=…

---

## [How do I write a (uint8\_t) data array via serial](https://discourse.processing.org/t/how-do-i-write-a-uint8-t-data-array-via-serial/30543)

<div class="topic-metadata">

**Author:** [@gerrikoio](https://discourse.processing.org/u/gerrikoio)\
**Replies:** 4\
**Last updated:** [June 7, 2021, 6:40pm UTC](https://discourse.processing.org/t/how-do-i-write-a-uint8-t-data-array-via-serial/30543 "2021-06-07T18:40:01Z")

</div>

I am learning the hard way that in Processing a “byte” data type is -128 to 127 and that if dealing with unsigned data types like “uint8\_t” I need to use the signed integer data type. Now I am sure this question has bee…

---

## [Remove a object in the array of colors](https://discourse.processing.org/t/remove-a-object-in-the-array-of-colors/30521)

<div class="topic-metadata">

**Author:** [@kylu](https://discourse.processing.org/u/kylu)\
**Replies:** 4\
**Last updated:** [June 7, 2021, 5:19pm UTC](https://discourse.processing.org/t/remove-a-object-in-the-array-of-colors/30521 "2021-06-07T17:19:31Z")

</div>

Hi! i’m working with a code, and i need to remove the color once it has been used. is a walker who takes on a color each time he begins his path. I need to make sure that the color not to repeat This is the class Pale…

---

## [Making a working liquid thermometer](https://discourse.processing.org/t/making-a-working-liquid-thermometer/30410)

<div class="topic-metadata">

**Author:** [@Valakas](https://discourse.processing.org/u/Valakas)\
**Replies:** 10\
**Last updated:** [June 7, 2021, 5:16pm UTC](https://discourse.processing.org/t/making-a-working-liquid-thermometer/30410 "2021-06-07T17:16:10Z")

</div>

Hello everyone. I have a code which receives a temperature and humidity value through the serial and I’m trying to use the temperature value to make a working liquid thermometer. As of right now, I managed to make it cha…

---

## [How do I change the size of an object with mouse](https://discourse.processing.org/t/how-do-i-change-the-size-of-an-object-with-mouse/30540)

<div class="topic-metadata">

**Author:** [@Hisoka](https://discourse.processing.org/u/Hisoka)\
**Replies:** 1\
**Last updated:** [June 7, 2021, 1:22pm UTC](https://discourse.processing.org/t/how-do-i-change-the-size-of-an-object-with-mouse/30540 "2021-06-07T13:22:31Z")

</div>

How do I change the size of an object, when the mouse is getting farther than the center of the canvas, the object gets bigger and when the mouse is getting closer to the center of the canvas, the object gets smaller I …

---

## [Active Processing program to simulate a planet orbiting around a sun](https://discourse.processing.org/t/active-processing-program-to-simulate-a-planet-orbiting-around-a-sun/30462)

<div class="topic-metadata">

**Author:** [@matto](https://discourse.processing.org/u/matto)\
**Replies:** 11\
**Last updated:** [June 7, 2021, 10:39am UTC](https://discourse.processing.org/t/active-processing-program-to-simulate-a-planet-orbiting-around-a-sun/30462 "2021-06-07T10:39:15Z")

</div>

Am trying to write a code to make my planet increase and decrease with respect to PI/2 and 3\*PI/2 as it orbits round the sun please any tips

---

## [Scale using cos/sin](https://discourse.processing.org/t/scale-using-cos-sin/30542)

<div class="topic-metadata">

**Author:** [@MacJ](https://discourse.processing.org/u/MacJ)\
**Replies:** 3\
**Last updated:** [June 7, 2021, 1:51am UTC](https://discourse.processing.org/t/scale-using-cos-sin/30542 "2021-06-07T01:51:13Z")

</div>

Hello so below is my code of a simple planet orbiting the sun final int SUN\_DIAM = 50; final int ORBIT\_X = 150; final int ORBIT\_Y = 35; final int PLANET\_DIAM = 25; final float SPEED = 0.03; float angle = 0; final …

---

## [Who can help me, how to place and object when mouse is clicked (SOLVED)](https://discourse.processing.org/t/who-can-help-me-how-to-place-and-object-when-mouse-is-clicked-solved/30492)

<div class="topic-metadata">

**Author:** [@Hisoka](https://discourse.processing.org/u/Hisoka)\
**Replies:** 5\
**Last updated:** [June 6, 2021, 4:07pm UTC](https://discourse.processing.org/t/who-can-help-me-how-to-place-and-object-when-mouse-is-clicked-solved/30492 "2021-06-06T16:07:28Z")

</div>

when I click on the mouse, the figure should be placed on the position that I clicked. After click, the logo should not be moved on the tips of the mouse point and should stay still on the position that the mouse was c…

---

## [Using object type as variable](https://discourse.processing.org/t/using-object-type-as-variable/30531)

<div class="topic-metadata">

**Author:** [@StainlessHolz](https://discourse.processing.org/u/StainlessHolz)\
**Replies:** 4\
**Last updated:** [June 6, 2021, 4:03pm UTC](https://discourse.processing.org/t/using-object-type-as-variable/30531 "2021-06-06T16:03:44Z")

</div>

Hi all, I´ve made a program where the user can manipulate data with nodes. You can add input, output and different manipulation nodes. It is like the shader editor from Blender or the program whith which you can progra…

---

## [Masking an array of videos](https://discourse.processing.org/t/masking-an-array-of-videos/30519)

<div class="topic-metadata">

**Author:** [@softailu](https://discourse.processing.org/u/softailu)\
**Replies:** 1\
**Last updated:** [June 6, 2021, 3:51pm UTC](https://discourse.processing.org/t/masking-an-array-of-videos/30519 "2021-06-06T15:51:01Z")

</div>

Hi! I go back to the forum for help. I’m with a project wanting to simulate with each click a different brush stroke, with a different color. Before helped me to generate the video array but now I want to mask each vid…

---

## [Help with Function (easing)](https://discourse.processing.org/t/help-with-function-easing/30527)

<div class="topic-metadata">

**Author:** [@tatyo](https://discourse.processing.org/u/tatyo)\
**Replies:** 3\
**Last updated:** [June 6, 2021, 11:03am UTC](https://discourse.processing.org/t/help-with-function-easing/30527 "2021-06-06T11:03:34Z")

</div>

Hi there! I am beginer to programming and i try to make a function for eg: easing: float x; float y; float easing = 0.005; void setup() { size(640, 360); } void easFunc(float a, float b, float c) { b = b+(a - b) …

---

## [When using P3D: "Could not run the sketch (Target VM failed to initialize)"](https://discourse.processing.org/t/when-using-p3d-could-not-run-the-sketch-target-vm-failed-to-initialize/8103)

<div class="topic-metadata">

**Author:** [@companje](https://discourse.processing.org/u/companje)\
**Replies:** 8\
**Last updated:** [June 6, 2021, 7:44am UTC](https://discourse.processing.org/t/when-using-p3d-could-not-run-the-sketch-target-vm-failed-to-initialize/8103 "2021-06-06T07:44:44Z")

</div>

Hi, since about a week I’m not able to run any sketches anymore in P3D mode on my Windows machine with Intel i5 6200U and HD 520 onboard graphics card. It has probably to do with the graphics driver after an automatic Wi…

---

## [Every time i use P3D this came out](https://discourse.processing.org/t/every-time-i-use-p3d-this-came-out/30515)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 6\
**Last updated:** [June 6, 2021, 7:41am UTC](https://discourse.processing.org/t/every-time-i-use-p3d-this-came-out/30515 "2021-06-06T07:41:22Z")

</div>

can’t find the intel graphics why!

---

## [My video library always cant use](https://discourse.processing.org/t/my-video-library-always-cant-use/30516)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 1\
**Last updated:** [June 5, 2021, 4:56pm UTC](https://discourse.processing.org/t/my-video-library-always-cant-use/30516 "2021-06-05T16:56:16Z")

</div>

i do every thing right. it still not worked

---

## [How can I continue or separate mousePressed?](https://discourse.processing.org/t/how-can-i-continue-or-separate-mousepressed/30509)

<div class="topic-metadata">

**Author:** [@tzmy](https://discourse.processing.org/u/tzmy)\
**Replies:** 3\
**Last updated:** [June 5, 2021, 1:30pm UTC](https://discourse.processing.org/t/how-can-i-continue-or-separate-mousepressed/30509 "2021-06-05T13:30:30Z")

</div>

I want to make a very simple screen-changing game with processing. I am a beginner in coding and processing, so I use mousePressed for screen changing. But I found that I can’t do some functions. How can I continue …

---

## [Finding the depth of the body with KinectPV2 library](https://discourse.processing.org/t/finding-the-depth-of-the-body-with-kinectpv2-library/30451)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 3\
**Last updated:** [June 5, 2021, 6:21am UTC](https://discourse.processing.org/t/finding-the-depth-of-the-body-with-kinectpv2-library/30451 "2021-06-05T06:21:14Z")

</div>

Can anyone help me with finding the depth of the body with KinectPV2? I mean I can track the body positions and I can track the depth data but I have no idea how to get the depth data of for example just the hands or ev…

---

## [Help with a hangman hangman game](https://discourse.processing.org/t/help-with-a-hangman-hangman-game/6481)

<div class="topic-metadata">

**Author:** [@thatone](https://discourse.processing.org/u/thatone)\
**Replies:** 6\
**Last updated:** [December 10, 2018, 8:51pm UTC](https://discourse.processing.org/t/help-with-a-hangman-hangman-game/6481 "2018-12-10T20:51:15Z")

</div>

Hello, I’m trying to make a hangman game, but I’m new to processing and a bit unsure on how to make it work. I would like to letters the array of words aren’t shown or something but when you press them it appears. I’ve…

---

## [Object-oriented programming, I need a description about how this code works](https://discourse.processing.org/t/object-oriented-programming-i-need-a-description-about-how-this-code-works/30498)

<div class="topic-metadata">

**Author:** [@UnderHok](https://discourse.processing.org/u/UnderHok)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 9:46pm UTC](https://discourse.processing.org/t/object-oriented-programming-i-need-a-description-about-how-this-code-works/30498 "2021-06-04T21:46:17Z")

</div>

please format code with \</\> button \* homework policy \* asking questions help \*\*I need a description about how this code

---

## [Why constrain doesnt work](https://discourse.processing.org/t/why-constrain-doesnt-work/30489)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 8:27pm UTC](https://discourse.processing.org/t/why-constrain-doesnt-work/30489 "2021-06-04T20:27:31Z")

</div>

int cols, rows; int w = 20; ArrayList\<Cell\> grid = new ArrayList\<Cell\>(); ArrayList\<Cell\> stack = new ArrayList\<Cell\>(); Cell current; Ball begain; void setup() { size(820, 820,P3D); camera(width/2+100,height,7…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=126)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=128)
