# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=481

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

**Page:** 482

---

## [Print all prime numbers from 1 to n in reverse order](https://discourse.processing.org/t/print-all-prime-numbers-from-1-to-n-in-reverse-order/11575)

<div class="topic-metadata">

**Author:** [@anonomous](https://discourse.processing.org/u/anonomous)\
**Replies:** 8\
**Last updated:** [May 27, 2019, 5:29am UTC](https://discourse.processing.org/t/print-all-prime-numbers-from-1-to-n-in-reverse-order/11575 "2019-05-27T05:29:41Z")

</div>

Hi! I just started learning Processing 3 weeks ago for a class, so I’ve only learned how to use strings/chars, if/else decision structures, and loops so far. I’m stumped on the very last exercise. Here is the assignment,…

---

## [Visualisation of the Rećaman Sequence](https://discourse.processing.org/t/visualisation-of-the-recaman-sequence/11606)

<div class="topic-metadata">

**Author:** [@yairkass](https://discourse.processing.org/u/yairkass)\
**Replies:** 3\
**Last updated:** [May 26, 2019, 11:30pm UTC](https://discourse.processing.org/t/visualisation-of-the-recaman-sequence/11606 "2019-05-26T23:30:48Z")

</div>

I made a small animation sketch in Processing, visualising the properties of the Rećaman integers sequnce. https://oeis.org/A005132 This is only a snapshot. Color represents whether a number is achieved with a jump …

---

## [How to run and read the results of command prompt/telnet from a processing sketch?](https://discourse.processing.org/t/how-to-run-and-read-the-results-of-command-prompt-telnet-from-a-processing-sketch/11571)

<div class="topic-metadata">

**Author:** [@Birb](https://discourse.processing.org/u/Birb)\
**Replies:** 5\
**Last updated:** [May 26, 2019, 10:31pm UTC](https://discourse.processing.org/t/how-to-run-and-read-the-results-of-command-prompt-telnet-from-a-processing-sketch/11571 "2019-05-26T22:31:14Z")

</div>

I’d like to run commands on cmd.exe from a processing sketch, reading the results. Is this possible, and is there a most simple example I can take a look at (such as executing dir and then reading the results to an array…

---

## [Gradient Loop Help](https://discourse.processing.org/t/gradient-loop-help/11608)

<div class="topic-metadata">

**Author:** [@Bobby](https://discourse.processing.org/u/Bobby)\
**Replies:** 3\
**Last updated:** [May 26, 2019, 9:12pm UTC](https://discourse.processing.org/t/gradient-loop-help/11608 "2019-05-26T21:12:22Z")

</div>

I am trying to make a background where the screen has rectangles that differ in shades of blue. I have tried putting my colours into an array (ik it not efficient), but i only result to getting 1 shade of blue for all re…

---

## [Real-Time Data from Web](https://discourse.processing.org/t/real-time-data-from-web/11537)

<div class="topic-metadata">

**Author:** [@anon57009815](https://discourse.processing.org/u/anon57009815)\
**Replies:** 4\
**Last updated:** [May 26, 2019, 7:36pm UTC](https://discourse.processing.org/t/real-time-data-from-web/11537 "2019-05-26T19:36:19Z")

</div>

Any help/examples on porting real time data to processing from the Web of satellites or oceans or the environment? Thanks in advance Luis

---

## [.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…

---

## [P5 js 3D texture not loaded on iOS](https://discourse.processing.org/t/p5-js-3d-texture-not-loaded-on-ios/11562)

<div class="topic-metadata">

**Author:** [@jinbread](https://discourse.processing.org/u/jinbread)\
**Replies:** 1\
**Last updated:** [May 26, 2019, 2:40pm UTC](https://discourse.processing.org/t/p5-js-3d-texture-not-loaded-on-ios/11562 "2019-05-26T14:40:40Z")

</div>

Hi, I am trying to make the code below on web and mobile. As you can see, the web seems to be fine, but when I try to open it on the mobile, it shows nothing. I assume, there is some problem with loading texture, but n…

---

## [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…

---

## [Calculating points along a curveVertex line](https://discourse.processing.org/t/calculating-points-along-a-curvevertex-line/11337)

<div class="topic-metadata">

**Author:** [@JoeMcKay](https://discourse.processing.org/u/JoeMcKay)\
**Replies:** 1\
**Last updated:** [May 26, 2019, 12:44pm UTC](https://discourse.processing.org/t/calculating-points-along-a-curvevertex-line/11337 "2019-05-26T12:44:37Z")

</div>

I am using curveVertex to create a line. I wanted to have a sprite move along the line and found that curvePoint() wasn’t giving me really accurate results. A little digging into the Catmull-Rom splines and I found the f…

---

## [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…

---

## [HELP: playMode('sustain') is not working](https://discourse.processing.org/t/help-playmode-sustain-is-not-working/11565)

<div class="topic-metadata">

**Author:** [@Carpece](https://discourse.processing.org/u/Carpece)\
**Replies:** 1\
**Last updated:** [May 26, 2019, 5:20am UTC](https://discourse.processing.org/t/help-playmode-sustain-is-not-working/11565 "2019-05-26T05:20:12Z")

</div>

Hi to all… here’s my code. I can’t figure out why playMode(‘sustain’) is not working… I’ve point to it inside a conditional and maybe could be the problem but I don’t find the solution. https://editor.p5js.org/carpece/s…

---

## [Beginner needing help with coding sketch](https://discourse.processing.org/t/beginner-needing-help-with-coding-sketch/11533)

<div class="topic-metadata">

**Author:** [@kelsierose94](https://discourse.processing.org/u/kelsierose94)\
**Replies:** 6\
**Last updated:** [May 26, 2019, 4:19am UTC](https://discourse.processing.org/t/beginner-needing-help-with-coding-sketch/11533 "2019-05-26T04:19:41Z")

</div>

Hi everyone! I’m a beginner coder (as in, learnt a few months ago) and a project I’m working on requires me to make a mini game. Here is what I have: https://editor.p5js.org/kelsierose94/sketches/ha9-e5FAw the yellow …

---

## [SQlite and Read Only file wont open in android](https://discourse.processing.org/t/sqlite-and-read-only-file-wont-open-in-android/11527)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 2\
**Last updated:** [May 24, 2019, 2:46am UTC](https://discourse.processing.org/t/sqlite-and-read-only-file-wont-open-in-android/11527 "2019-05-24T02:46:48Z")

</div>

I wrote a sketch that opens and reads a .db file of about 200,000 stars. In Processing 3 on desktop it reads the db file, uses a specific query to get about 6000 stars that are displayed as texture.point(X,Y). I took t…

---

## [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…

---

## [Play p5.js not an importable libraries in Processing IDE?](https://discourse.processing.org/t/play-p5-js-not-an-importable-libraries-in-processing-ide/11538)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 2\
**Last updated:** [May 25, 2019, 4:51pm UTC](https://discourse.processing.org/t/play-p5-js-not-an-importable-libraries-in-processing-ide/11538 "2019-05-25T16:51:04Z")

</div>

Hi everyone, Does anyone know why the Play p5.js (http://molleindustria.github.io/p5.play/) is not avalaible from the ‘Import libraries’ command of Procesing IDE, while there are many others? Is it “safe” to use it or d…

---

## [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…

---

## [Processing.js vs p5.js](https://discourse.processing.org/t/processing-js-vs-p5-js/11521)

<div class="topic-metadata">

**Author:** [@schmittmachine](https://discourse.processing.org/u/schmittmachine)\
**Replies:** 1\
**Last updated:** [May 25, 2019, 3:49pm UTC](https://discourse.processing.org/t/processing-js-vs-p5-js/11521 "2019-05-25T15:49:59Z")

</div>

Sorry if this was already discussed here (I didn’t find any reference to it though), but I really miss the now stalled processing.js project. The main reason being that it was more compatible with the processing languag…

---

## [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…

---

## [Masked maps in Unfolding](https://discourse.processing.org/t/masked-maps-in-unfolding/11514)

<div class="topic-metadata">

**Author:** [@tnagel](https://discourse.processing.org/u/tnagel)\
**Replies:** 1\
**Last updated:** [May 25, 2019, 2:56pm UTC](https://discourse.processing.org/t/masked-maps-in-unfolding/11514 "2019-05-25T14:56:17Z")

</div>

As it seems the old thread https://discourse.processing.org/t/help-rounded-rectangle-unfolding-maps-masking-maps/11050 has been deleted, I wanted to add the example code somewhere for others to use. The following code ne…

---

## [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)?

---

## [Adding files in p5.js editor changes?](https://discourse.processing.org/t/adding-files-in-p5-js-editor-changes/11555)

<div class="topic-metadata">

**Author:** [@KevinFS](https://discourse.processing.org/u/KevinFS)\
**Replies:** 2\
**Last updated:** [May 25, 2019, 11:30am UTC](https://discourse.processing.org/t/adding-files-in-p5-js-editor-changes/11555 "2019-05-25T11:30:04Z")

</div>

Yesterday I could add image files to the p5.js online editor via a drag and drop menu from the “sktetch” menu. Today, no more drag and drop…what’s up?

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=480)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=482)
