# Processing

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

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

**Page:** 296

---

## [.xef files from Kinect](https://discourse.processing.org/t/xef-files-from-kinect/11613)

<div class="topic-metadata">

**Author:** [@symrin](https://discourse.processing.org/u/symrin)\
**Replies:** 0\
**Last updated:** [May 26, 2019, 4:37pm UTC](https://discourse.processing.org/t/xef-files-from-kinect/11613 "2019-05-26T16:37:33Z")

</div>

I have .xef file from Kinect. How do I process those?

---

## [Unsure how to use PVectors](https://discourse.processing.org/t/unsure-how-to-use-pvectors/11597)

<div class="topic-metadata">

**Author:** [@codingNoob](https://discourse.processing.org/u/codingNoob)\
**Replies:** 8\
**Last updated:** [May 26, 2019, 3:40pm UTC](https://discourse.processing.org/t/unsure-how-to-use-pvectors/11597 "2019-05-26T15:40:07Z")

</div>

How do you add or subtract PVectors arrays in processing? This is my code for my class Ball for my game but i have to change in it PVectors class Ball { int billHeadYCentre=300; int ballSizeX=20; int ballSizeY=20…

---

## [Having trouble with ArrayList cant find an answer](https://discourse.processing.org/t/having-trouble-with-arraylist-cant-find-an-answer/11546)

<div class="topic-metadata">

**Author:** [@BL4K](https://discourse.processing.org/u/BL4K)\
**Replies:** 6\
**Last updated:** [May 26, 2019, 2:23pm UTC](https://discourse.processing.org/t/having-trouble-with-arraylist-cant-find-an-answer/11546 "2019-05-26T14:23:16Z")

</div>

I am getting "The function hits() does not expect parameters for (int i=bullet.size()-1;i\>0;i--){ b.display(); b.update(); for (int j=asteroid.size()-1;j\>0;j--){ if(bullet.get(i).hits(asteroid.get(i)…

---

## [Photo grid visualization](https://discourse.processing.org/t/photo-grid-visualization/11602)

<div class="topic-metadata">

**Author:** [@feelthemall](https://discourse.processing.org/u/feelthemall)\
**Replies:** 1\
**Last updated:** [May 26, 2019, 11:19am UTC](https://discourse.processing.org/t/photo-grid-visualization/11602 "2019-05-26T11:19:01Z")

</div>

So I want to make something like this with a bunch of pictures (which are ordered). Any ideas how should I arrange them them with processing to get a similar result? I think I have to use an array for the photos and a lo…

---

## [Plot a graph through processing](https://discourse.processing.org/t/plot-a-graph-through-processing/11604)

<div class="topic-metadata">

**Author:** [@thatone](https://discourse.processing.org/u/thatone)\
**Replies:** 2\
**Last updated:** [May 26, 2019, 12:41pm UTC](https://discourse.processing.org/t/plot-a-graph-through-processing/11604 "2019-05-26T12:41:54Z")

</div>

Hello, I’ve having a bit of a problem with this exercise. I’m supposed to plot a the graph 300=(x\*x)/200; To get there x is supposed to be added 0.1 at each time and the graph should stop at y=300. Through my current …

---

## [Arrays causing problems?](https://discourse.processing.org/t/arrays-causing-problems/11595)

<div class="topic-metadata">

**Author:** [@Bobby](https://discourse.processing.org/u/Bobby)\
**Replies:** 11\
**Last updated:** [May 26, 2019, 11:03am UTC](https://discourse.processing.org/t/arrays-causing-problems/11595 "2019-05-26T11:03:55Z")

</div>

Hi, I am making a game where balls are being projected (with gravity) and the user has to make the balls bounce and land in a basket. If a ball drops, it should be game over. There are so many problems with my code (thi…

---

## [Trouble with Append()](https://discourse.processing.org/t/trouble-with-append/11548)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 2\
**Last updated:** [May 26, 2019, 9:35am UTC](https://discourse.processing.org/t/trouble-with-append/11548 "2019-05-26T09:35:39Z")

</div>

Hello, I am writing a basic poker tracker program. The program takes in a poker hand history file (a .txt file type) which contains multiple hands within it, isolates each hand, saves it into the data folder as a uniqu…

---

## [Can not add Box2D in processing](https://discourse.processing.org/t/can-not-add-box2d-in-processing/11600)

<div class="topic-metadata">

**Author:** [@CodingIsLife](https://discourse.processing.org/u/CodingIsLife)\
**Replies:** 2\
**Last updated:** [May 26, 2019, 8:37am UTC](https://discourse.processing.org/t/can-not-add-box2d-in-processing/11600 "2019-05-26T08:37:16Z")

</div>

I was reading The Nature of Code ( the book written by Mr. Daniel Shifman). There I found the chapter which contains physics libraries. I wanted to add Box2D (the processing version of Box2D) to my processing. I downloa…

---

## [SOS! Hit Detection help in Pong Game](https://discourse.processing.org/t/sos-hit-detection-help-in-pong-game/11535)

<div class="topic-metadata">

**Author:** [@Susana](https://discourse.processing.org/u/Susana)\
**Replies:** 9\
**Last updated:** [May 25, 2019, 7:08pm UTC](https://discourse.processing.org/t/sos-hit-detection-help-in-pong-game/11535 "2019-05-25T19:08:33Z")

</div>

Hello! I’m having a hard time getting a hit detection between my ball and paddle. I was able to get it to work, but it stopped working once I migrated my code into classes. I’ll include my code that works as well as the …

---

## [Tips for starting a future video project](https://discourse.processing.org/t/tips-for-starting-a-future-video-project/11539)

<div class="topic-metadata">

**Author:** [@ciuckc](https://discourse.processing.org/u/ciuckc)\
**Replies:** 2\
**Last updated:** [May 25, 2019, 6:45pm UTC](https://discourse.processing.org/t/tips-for-starting-a-future-video-project/11539 "2019-05-25T18:45:01Z")

</div>

Hello, I want to start working on a project which involves taking video footage and coding it in processing. For this thing I want to replace a grid of pixels(128x128 or 64x64) with svg images based on how bright the pix…

---

## [Need Help with arrays for background](https://discourse.processing.org/t/need-help-with-arrays-for-background/11577)

<div class="topic-metadata">

**Author:** [@codingNoob](https://discourse.processing.org/u/codingNoob)\
**Replies:** 8\
**Last updated:** [May 25, 2019, 4:27pm UTC](https://discourse.processing.org/t/need-help-with-arrays-for-background/11577 "2019-05-25T16:27:57Z")

</div>

So i have an assignment which needs to have a gradient of blue as the background with each shade being 50 pixels and the darkest at the top, but i cant seem to code it so the top 50 pixels is coloured in. please help in…

---

## [Score counter Help](https://discourse.processing.org/t/score-counter-help/11587)

<div class="topic-metadata">

**Author:** [@Bobby](https://discourse.processing.org/u/Bobby)\
**Replies:** 6\
**Last updated:** [May 25, 2019, 4:14pm UTC](https://discourse.processing.org/t/score-counter-help/11587 "2019-05-25T16:14:08Z")

</div>

Hi, i have made a program to where balls would enter a basket and for every ball that enters (5 balls) + 10 to the counter and the balls would reset to the start. I made my balls in an array: Ball\[\] bballs = new Ball\[5…

---

## [PVector Function Parameters HELP](https://discourse.processing.org/t/pvector-function-parameters-help/11508)

<div class="topic-metadata">

**Author:** [@gaggiatoraya](https://discourse.processing.org/u/gaggiatoraya)\
**Replies:** 2\
**Last updated:** [May 25, 2019, 3:25pm UTC](https://discourse.processing.org/t/pvector-function-parameters-help/11508 "2019-05-25T15:25:42Z")

</div>

I’ve created a program that depicts a ball bouncing off of the floor(actually respawning once it touches the floor) to be used in a larger set of code. I would like to be able to duplicate 4 more bouncing balls however I…

---

## [Screen Capturer Library](https://discourse.processing.org/t/screen-capturer-library/11586)

<div class="topic-metadata">

**Author:** [@davidbambalan](https://discourse.processing.org/u/davidbambalan)\
**Replies:** 1\
**Last updated:** [May 25, 2019, 2:35pm UTC](https://discourse.processing.org/t/screen-capturer-library/11586 "2019-05-25T14:35:16Z")

</div>

Are there any libraries that I can use to capture my screen?

---

## [Indentation lines/indication (modifying editor stuff)](https://discourse.processing.org/t/indentation-lines-indication-modifying-editor-stuff/11506)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 3\
**Last updated:** [May 25, 2019, 2:04pm UTC](https://discourse.processing.org/t/indentation-lines-indication-modifying-editor-stuff/11506 "2019-05-25T14:04:26Z")

</div>

I learned to program in an IDE with lines/bars indicating indentation depth similar to what visual studio does Is there any way I can get these lines?

---

## [Action Cam Integration into Sketch](https://discourse.processing.org/t/action-cam-integration-into-sketch/11497)

<div class="topic-metadata">

**Author:** [@davidbambalan](https://discourse.processing.org/u/davidbambalan)\
**Replies:** 1\
**Last updated:** [May 25, 2019, 1:32pm UTC](https://discourse.processing.org/t/action-cam-integration-into-sketch/11497 "2019-05-25T13:32:50Z")

</div>

Are there any libraries or solutions for wireless integration of action camera (e.g., drone camera streams directly to the sketch)?

---

## [HTTP Request with JSON body](https://discourse.processing.org/t/http-request-with-json-body/11544)

<div class="topic-metadata">

**Author:** [@fedpep](https://discourse.processing.org/u/fedpep)\
**Replies:** 1\
**Last updated:** [May 25, 2019, 10:26am UTC](https://discourse.processing.org/t/http-request-with-json-body/11544 "2019-05-25T10:26:42Z")

</div>

Hello, I’m working with the TVDB API but I’m having trouble getting the access token as I normally do. This is what the documentation says: Authentication Authentication to use the API is similar to the How-to sectio…

---

## [How do I mirror the movement of another another shape?](https://discourse.processing.org/t/how-do-i-mirror-the-movement-of-another-another-shape/11573)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 9\
**Last updated:** [May 25, 2019, 2:16am UTC](https://discourse.processing.org/t/how-do-i-mirror-the-movement-of-another-another-shape/11573 "2019-05-25T02:16:01Z")

</div>

I would like the green rectangle on the right to mirror the movement of the pink rectangle on the left. (And sometimes randomly overlap.) Is there an easy way to draw the right side of the green rectangle so that it is …

---

## [Randomizing levels](https://discourse.processing.org/t/randomizing-levels/11572)

<div class="topic-metadata">

**Author:** [@clueless\_coder](https://discourse.processing.org/u/clueless_coder)\
**Replies:** 1\
**Last updated:** [May 25, 2019, 1:56am UTC](https://discourse.processing.org/t/randomizing-levels/11572 "2019-05-25T01:56:51Z")

</div>

I’m trying to code a game in which clicking ‘play’ would result in the player getting a random level out of a few set levels. However, the problem is that the levels have to be non-repeating. Does anyone know how to achi…

---

## [Processing won't run. Win10](https://discourse.processing.org/t/processing-wont-run-win10/11523)

<div class="topic-metadata">

**Author:** [@TomC](https://discourse.processing.org/u/TomC)\
**Replies:** 3\
**Last updated:** [May 24, 2019, 11:21pm UTC](https://discourse.processing.org/t/processing-wont-run-win10/11523 "2019-05-24T23:21:08Z")

</div>

Hello: I’m trying to run Processing on a Win10 machine. I’ve tried 64 and 32 bit variants, running as Administrator. Splash screen comes up for a few seconds, then nothing. I believe my Java is up to date. There may…

---

## [G4P text is blurred without background()](https://discourse.processing.org/t/g4p-text-is-blurred-without-background/11489)

<div class="topic-metadata">

**Author:** [@gyula](https://discourse.processing.org/u/gyula)\
**Replies:** 4\
**Last updated:** [May 24, 2019, 7:47pm UTC](https://discourse.processing.org/t/g4p-text-is-blurred-without-background/11489 "2019-05-24T19:47:56Z")

</div>

Using Processing 3.5.3 and G4P V4.2.1 on Windows 7. Why does G4P control text get blurred when not clearing the display window at the beginning of each frame? vs. Here’s a simple example: import g4p\_controls.\*; b…

---

## [COM Port Error: Port Not Found](https://discourse.processing.org/t/com-port-error-port-not-found/11504)

<div class="topic-metadata">

**Author:** [@davidbambalan](https://discourse.processing.org/u/davidbambalan)\
**Replies:** 21\
**Last updated:** [May 24, 2019, 4:38pm UTC](https://discourse.processing.org/t/com-port-error-port-not-found/11504 "2019-05-24T16:38:32Z")

</div>

I used a code here to detect on which port the Arduino is connected. However, I cannot run this code: mySerial = new Serial(this, detected\_port, 9600); as it says Error opening serial port COM#: Port not found. How do I …

---

## [Can't figure out how to fix this NullPointerException](https://discourse.processing.org/t/cant-figure-out-how-to-fix-this-nullpointerexception/11441)

<div class="topic-metadata">

**Author:** [@kiraraew](https://discourse.processing.org/u/kiraraew)\
**Replies:** 8\
**Last updated:** [May 24, 2019, 3:16pm UTC](https://discourse.processing.org/t/cant-figure-out-how-to-fix-this-nullpointerexception/11441 "2019-05-24T15:16:46Z")

</div>

I am new to Processing, only have been working with it for a few months now, and I’m trying to create a program that takes data from Arduino and uses that to send out a tweet using Twitter4j. I’ve narrowed down the code…

---

## [Creating a scrollable view](https://discourse.processing.org/t/creating-a-scrollable-view/11414)

<div class="topic-metadata">

**Author:** [@eang79](https://discourse.processing.org/u/eang79)\
**Replies:** 6\
**Last updated:** [May 24, 2019, 2:17pm UTC](https://discourse.processing.org/t/creating-a-scrollable-view/11414 "2019-05-24T14:17:23Z")

</div>

Hiya, I will like to find out how to create a scrollable view on a group. I am operating in Java mode, using the Controlp5 library. I wasn’t able to find examples online that helps. Could anyone put up some code stubs, …

---

## [Writing a Search Function](https://discourse.processing.org/t/writing-a-search-function/11403)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 7\
**Last updated:** [May 24, 2019, 12:55pm UTC](https://discourse.processing.org/t/writing-a-search-function/11403 "2019-05-24T12:55:30Z")

</div>

Hello, I have a program that creates custom objects from text documents that contain certain pieces of data. Each object has its own Boolean tags that correspond to different states the object could be under based upon …

---

## [Where to Start? Generating Meshes from an Image](https://discourse.processing.org/t/where-to-start-generating-meshes-from-an-image/11501)

<div class="topic-metadata">

**Author:** [@rand\_colors](https://discourse.processing.org/u/rand_colors)\
**Replies:** 4\
**Last updated:** [May 23, 2019, 7:18pm UTC](https://discourse.processing.org/t/where-to-start-generating-meshes-from-an-image/11501 "2019-05-23T19:18:59Z")

</div>

Hi everyone, I took a look at the OF tutorials, and I’m trying to understand how to do this https://openframeworks.cc/ofBook/chapters/generativemesh.html in Processing. It’s not essential for this first step to make …

---

## [Processing Java and Webhooks](https://discourse.processing.org/t/processing-java-and-webhooks/11528)

<div class="topic-metadata">

**Author:** [@Birb](https://discourse.processing.org/u/Birb)\
**Replies:** 0\
**Last updated:** [May 24, 2019, 1:35am UTC](https://discourse.processing.org/t/processing-java-and-webhooks/11528 "2019-05-24T01:35:28Z")

</div>

How can we implement webhooks from a service like Zapier inside a processing Java app? I would like to make an app that listens for webhook posts to get realtime information from websites like twitter.

---

## [Trouble with mousePressed](https://discourse.processing.org/t/trouble-with-mousepressed/11529)

<div class="topic-metadata">

**Author:** [@clueless\_coder](https://discourse.processing.org/u/clueless_coder)\
**Replies:** 6\
**Last updated:** [May 24, 2019, 4:14am UTC](https://discourse.processing.org/t/trouble-with-mousepressed/11529 "2019-05-24T04:14:15Z")

</div>

I’m trying to make one part of the code transition to another with no luck. I’m trying to use mousePressed but it seems like the scene only appears for a moment before disappearing again. Is thi because of void draw()? …

---

## [Arrays and colors](https://discourse.processing.org/t/arrays-and-colors/11526)

<div class="topic-metadata">

**Author:** [@Darius](https://discourse.processing.org/u/Darius)\
**Replies:** 3\
**Last updated:** [May 23, 2019, 10:58pm UTC](https://discourse.processing.org/t/arrays-and-colors/11526 "2019-05-23T22:58:55Z")

</div>

Hi All, I am very new in processing and I am trying to use an array to change the color of my background color by clicking with the mouse to use numbers from 0 to 4. This seems not really working on my sketch, any sugges…

---

## [Character and button](https://discourse.processing.org/t/character-and-button/11436)

<div class="topic-metadata">

**Author:** [@macabol](https://discourse.processing.org/u/macabol)\
**Replies:** 3\
**Last updated:** [May 23, 2019, 3:33pm UTC](https://discourse.processing.org/t/character-and-button/11436 "2019-05-23T15:33:27Z")

</div>

hello I would add a button that can make me choose different character when I play. Thank you for your answer here is my script: PImage lapin;//image boule PImage fond;//fond PImage fleche;//fleche PImage fleche2;//flec…

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

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