# Latest

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

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

**Page:** 399

---

## [Problem of display in a " for" loop](https://discourse.processing.org/t/problem-of-display-in-a-for-loop/17422)

<div class="topic-metadata">

**Author:** [@cypseb](https://discourse.processing.org/u/cypseb)\
**Replies:** 6\
**Last updated:** [January 29, 2020, 8:15pm UTC](https://discourse.processing.org/t/problem-of-display-in-a-for-loop/17422 "2020-01-29T20:15:12Z")

</div>

Hello everybody i am not a beguiner in programing, but i am a beguinner in processing I try to move a text in a FOR loop but the drawing is not refresh, only at the end of the loop i try to add redraw() in my loop bu…

---

## [Why won't my json url work?](https://discourse.processing.org/t/why-wont-my-json-url-work/17425)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 2\
**Last updated:** [January 29, 2020, 7:21pm UTC](https://discourse.processing.org/t/why-wont-my-json-url-work/17425 "2020-01-29T19:21:43Z")

</div>

Nothing I am doing seems to be working, I even used the same json url as used in this tutorial and it still keeps coming up with the error: "\> p5.js says: It looks like there was a problem loading your json. Try checkin…

---

## [Does Export application work on the Raspberry PI](https://discourse.processing.org/t/does-export-application-work-on-the-raspberry-pi/16518)

<div class="topic-metadata">

**Author:** [@michaelkpierce](https://discourse.processing.org/u/michaelkpierce)\
**Replies:** 13\
**Last updated:** [January 29, 2020, 3:39pm UTC](https://discourse.processing.org/t/does-export-application-work-on-the-raspberry-pi/16518 "2020-01-29T15:39:16Z")

</div>

I want to be able to make an application that will work without installing Processing on the PI. I’ve tested this on a Windows installation and can make an application that will run on a windows machine without loading …

---

## [Vertex shader displacement](https://discourse.processing.org/t/vertex-shader-displacement/17415)

<div class="topic-metadata">

**Author:** [@Geo\_Pi](https://discourse.processing.org/u/Geo_Pi)\
**Replies:** 1\
**Last updated:** [January 29, 2020, 3:26pm UTC](https://discourse.processing.org/t/vertex-shader-displacement/17415 "2020-01-29T15:26:19Z")

</div>

Hi, I’m in the process of learning OpenGL & GLSL. I’m trying to port to processing this THREE.js tutorial on vertex displacement shader https://www.clicktorelease.com/blog/vertex-displacement-noise-3d-webgl-glsl-three…

---

## [Arduino, piezo sensors and Processing animations](https://discourse.processing.org/t/arduino-piezo-sensors-and-processing-animations/17255)

<div class="topic-metadata">

**Author:** [@EasyJu](https://discourse.processing.org/u/EasyJu)\
**Replies:** 5\
**Last updated:** [January 29, 2020, 1:24pm UTC](https://discourse.processing.org/t/arduino-piezo-sensors-and-processing-animations/17255 "2020-01-29T13:24:15Z")

</div>

Hi everyone, (french version below) I’m working on a project with Arduino, piezo sensors and Processing. I would like to have an animation played on Processing for each time a sensor is activated (an animation for a se…

---

## [Video switch not on Loop](https://discourse.processing.org/t/video-switch-not-on-loop/17407)

<div class="topic-metadata">

**Author:** [@vanoevelenstef](https://discourse.processing.org/u/vanoevelenstef)\
**Replies:** 1\
**Last updated:** [January 29, 2020, 11:03am UTC](https://discourse.processing.org/t/video-switch-not-on-loop/17407 "2020-01-29T11:03:03Z")

</div>

I compiled this code from some sources and it works (what is a big deal) but my video stops after it plays and I would like it to play on loop. Tried loop(); function but didn’t work. Any suggestions? import processing.…

---

## [How to include G4P controls with saveFrame](https://discourse.processing.org/t/how-to-include-g4p-controls-with-saveframe/17233)

<div class="topic-metadata">

**Author:** [@Priscilla\_van\_Gritte](https://discourse.processing.org/u/Priscilla_van_Gritte)\
**Replies:** 25\
**Last updated:** [January 29, 2020, 10:59am UTC](https://discourse.processing.org/t/how-to-include-g4p-controls-with-saveframe/17233 "2020-01-29T10:59:17Z")

</div>

When I use the “saveFrame” function it does take a screenshot of the sketch but does not take all its elements. For example, this first image is a screenshot taken with the Windows tool: And this one is a screenshot …

---

## [backPressed() not working on second activity](https://discourse.processing.org/t/backpressed-not-working-on-second-activity/17398)

<div class="topic-metadata">

**Author:** [@pallav12](https://discourse.processing.org/u/pallav12)\
**Replies:** 3\
**Last updated:** [January 29, 2020, 9:48am UTC](https://discourse.processing.org/t/backpressed-not-working-on-second-activity/17398 "2020-01-29T09:48:23Z")

</div>

I tried opening new Activity in setup of Sketch.java using startActivity(intent) but on second activity I noticed back button not working ie not leading to first activity… Is this a issue in core library? I am using proc…

---

## [2D grid array question](https://discourse.processing.org/t/2d-grid-array-question/17189)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 19\
**Last updated:** [January 28, 2020, 11:16pm UTC](https://discourse.processing.org/t/2d-grid-array-question/17189 "2020-01-28T23:16:43Z")

</div>

For the past few days have been trying to better understand grids and arrays. After reading D Shiffman tutorial on 2D grid arrays I am now trying to play with that code a bit. I would like the grid(s) to appear twice,…

---

## [How can I run a for loop using a function?](https://discourse.processing.org/t/how-can-i-run-a-for-loop-using-a-function/17403)

<div class="topic-metadata">

**Author:** [@Daniele92](https://discourse.processing.org/u/Daniele92)\
**Replies:** 4\
**Last updated:** [January 28, 2020, 11:01pm UTC](https://discourse.processing.org/t/how-can-i-run-a-for-loop-using-a-function/17403 "2020-01-28T23:01:40Z")

</div>

Hello to everyone. Can someone explain to me , How can I run a : for( int i=100; i\>0; i=i-10 ) { ellipse(100,100,i,i); } Using a function?! Thank you , i DON’t want a code but need to understand for classroom activit…

---

## [Making a 3D camera](https://discourse.processing.org/t/making-a-3d-camera/17357)

<div class="topic-metadata">

**Author:** [@ArthusWQZ](https://discourse.processing.org/u/ArthusWQZ)\
**Replies:** 11\
**Last updated:** [January 28, 2020, 10:41pm UTC](https://discourse.processing.org/t/making-a-3d-camera/17357 "2020-01-28T22:41:12Z")

</div>

Hello everyone, I recently started coding a 3d program, some kind of game, but I remain stuck because of one simple thing : how to make a 3d camera ? In fact, the program generates a cube, but I want it to move when I …

---

## [P5 web editor repo, some issues unnecessarily still open](https://discourse.processing.org/t/p5-web-editor-repo-some-issues-unnecessarily-still-open/17396)

<div class="topic-metadata">

**Author:** [@mynk](https://discourse.processing.org/u/mynk)\
**Replies:** 0\
**Last updated:** [January 28, 2020, 6:25pm UTC](https://discourse.processing.org/t/p5-web-editor-repo-some-issues-unnecessarily-still-open/17396 "2020-01-28T18:25:58Z")

</div>

I think many issues on p5 web editor github repo are still open unnecessarily, here is an example of such an issue Can something be done to fix this problem, I hope I am not missing something important here …

---

## [Change world's gravity using keyPressed (Fisica)](https://discourse.processing.org/t/change-worlds-gravity-using-keypressed-fisica/17362)

<div class="topic-metadata">

**Author:** [@floflopm](https://discourse.processing.org/u/floflopm)\
**Replies:** 3\
**Last updated:** [January 28, 2020, 5:06pm UTC](https://discourse.processing.org/t/change-worlds-gravity-using-keypressed-fisica/17362 "2020-01-28T17:06:01Z")

</div>

Hi, I am using Fisica library in which I set gravity (gx, gy). I would like to be able to change the value of the gravity using keyPressed in a range of -100 to 100 so I can control the motion of balls from left to righ…

---

## [Any Processing Sound Library Supporting .m4a?](https://discourse.processing.org/t/any-processing-sound-library-supporting-m4a/13722)

<div class="topic-metadata">

**Author:** [@processingCendrum](https://discourse.processing.org/u/processingCendrum)\
**Replies:** 4\
**Last updated:** [January 28, 2020, 3:31pm UTC](https://discourse.processing.org/t/any-processing-sound-library-supporting-m4a/13722 "2020-01-28T15:31:56Z")

</div>

I’m trying to create an interface to play and browse my music. Thing is, most of it is in .m4a, and neither the Sound library nor the Minim library seem to support that format. All my music is either in .m4a or in .mp3,…

---

## [New to processing, I need some help with classes](https://discourse.processing.org/t/new-to-processing-i-need-some-help-with-classes/17156)

<div class="topic-metadata">

**Author:** [@bugotc14](https://discourse.processing.org/u/bugotc14)\
**Replies:** 11\
**Last updated:** [January 28, 2020, 3:03pm UTC](https://discourse.processing.org/t/new-to-processing-i-need-some-help-with-classes/17156 "2020-01-28T15:03:16Z")

</div>

yesterday I tried to make a program that displays a cool ellipse with ellipses around it and I made it and everything worked fine, I made a class named DotsArray and made the ellipse array an object, I even added a feat…

---

## [java.lang.UnsatisfiedLinkError](https://discourse.processing.org/t/java-lang-unsatisfiedlinkerror/16848)

<div class="topic-metadata">

**Author:** [@spflanze](https://discourse.processing.org/u/spflanze)\
**Replies:** 9\
**Last updated:** [January 28, 2020, 5:22am UTC](https://discourse.processing.org/t/java-lang-unsatisfiedlinkerror/16848 "2020-01-28T05:22:23Z")

</div>

I am developing a Processing Sketch in Eclipse that uses USB by means of the serial port emulator in jssc.jar. It charts data received over the serial port as lines on a graph. When the program is run, the sketch window …

---

## [Video library: grab specific frame of a movie](https://discourse.processing.org/t/video-library-grab-specific-frame-of-a-movie/17387)

<div class="topic-metadata">

**Author:** [@keithhandy](https://discourse.processing.org/u/keithhandy)\
**Replies:** 2\
**Last updated:** [January 28, 2020, 4:07am UTC](https://discourse.processing.org/t/video-library-grab-specific-frame-of-a-movie/17387 "2020-01-28T04:07:02Z")

</div>

Hi, I have been trying to write code to grab a specific frame from a movie file using the Movie object and the “jump” method, but I am unable to jump to a specific point in the movie unless the movie is playing. The onl…

---

## [Minim audio recording fails after 6 files are recorded](https://discourse.processing.org/t/minim-audio-recording-fails-after-6-files-are-recorded/17360)

<div class="topic-metadata">

**Author:** [@bluemoon](https://discourse.processing.org/u/bluemoon)\
**Replies:** 2\
**Last updated:** [January 28, 2020, 1:07am UTC](https://discourse.processing.org/t/minim-audio-recording-fails-after-6-files-are-recorded/17360 "2020-01-28T01:07:50Z")

</div>

Hi folks, With a one line mod to the Minim RecordAudioInput library example to allow for recording multiple audio files, an error is thrown: ==== JavaSound Minim Error ==== ==== Couldn't open the line: line with format…

---

## [Playing sound with Minim on Pi breaks](https://discourse.processing.org/t/playing-sound-with-minim-on-pi-breaks/17354)

<div class="topic-metadata">

**Author:** [@bluemoon](https://discourse.processing.org/u/bluemoon)\
**Replies:** 1\
**Last updated:** [January 28, 2020, 1:06am UTC](https://discourse.processing.org/t/playing-sound-with-minim-on-pi-breaks/17354 "2020-01-28T01:06:44Z")

</div>

Hi Folks, I’ve got a bit of a mystery for you. I’ve got some code that cycles through a folder of audio files and plays them with minim. I’m using the following that gets called in draw to check when one file is done …

---

## [Looking for people interested in discussing refactoring for our open source game made with Processing](https://discourse.processing.org/t/looking-for-people-interested-in-discussing-refactoring-for-our-open-source-game-made-with-processing/17112)

<div class="topic-metadata">

**Author:** [@Stephcraft](https://discourse.processing.org/u/Stephcraft)\
**Replies:** 6\
**Last updated:** [January 27, 2020, 11:59pm UTC](https://discourse.processing.org/t/looking-for-people-interested-in-discussing-refactoring-for-our-open-source-game-made-with-processing/17112 "2020-01-27T23:59:29Z")

</div>

The project is called Project 16x16, it is a 2D platformer game happening in a dystopian futuristic industrial universe. (Further reading for the lore) An important goal of the project is to show what can be achieved wi…

---

## [Query regarding best practices to credit original developers](https://discourse.processing.org/t/query-regarding-best-practices-to-credit-original-developers/17042)

<div class="topic-metadata">

**Author:** [@pallav12](https://discourse.processing.org/u/pallav12)\
**Replies:** 6\
**Last updated:** [January 14, 2020, 9:54pm UTC](https://discourse.processing.org/t/query-regarding-best-practices-to-credit-original-developers/17042 "2020-01-14T21:54:42Z")

</div>

Hello Everyone, I have created a processing library rainbow, its about creating an abstraction layer over fun challenges of Coding train. So you can play around with different examples. For that I have taken code from c…

---

## [Optical illusion: are these lines parallel or not?](https://discourse.processing.org/t/optical-illusion-are-these-lines-parallel-or-not/17385)

<div class="topic-metadata">

**Author:** [@trikaphundo](https://discourse.processing.org/u/trikaphundo)\
**Replies:** 0\
**Last updated:** [January 27, 2020, 9:00pm UTC](https://discourse.processing.org/t/optical-illusion-are-these-lines-parallel-or-not/17385 "2020-01-27T21:00:24Z")

</div>

Hello, I joined recently the forum. I’ve decided to share some of my sketches which, I believe, some may find interesting. From time to time, I like wandering the Internet to look for ideas on maths and arts. I came ac…

---

## [Recognize bodies involved in collision's class](https://discourse.processing.org/t/recognize-bodies-involved-in-collisions-class/17384)

<div class="topic-metadata">

**Author:** [@MCGFP](https://discourse.processing.org/u/MCGFP)\
**Replies:** 0\
**Last updated:** [January 27, 2020, 8:56pm UTC](https://discourse.processing.org/t/recognize-bodies-involved-in-collisions-class/17384 "2020-01-27T20:56:31Z")

</div>

Hi, I am using Fisica library for a game. I have different types of FCircle (circle2, circle2) of different size and one type of FBox rectangle1. I am able to generate actions when a circle collides with a rectangle (ma…

---

## [Storing Point in a variable](https://discourse.processing.org/t/storing-point-in-a-variable/17381)

<div class="topic-metadata">

**Author:** [@prathmesh](https://discourse.processing.org/u/prathmesh)\
**Replies:** 2\
**Last updated:** [January 27, 2020, 9:26pm UTC](https://discourse.processing.org/t/storing-point-in-a-variable/17381 "2020-01-27T21:26:13Z")

</div>

Hello All, Why is the statement below invalid: float x = point(a,b); it gives me the error : void cannot be matched with int.(interesting!!) Is it not possible to store a point in a variable? I came across this while …

---

## [Display images randomly by clicking](https://discourse.processing.org/t/display-images-randomly-by-clicking/17380)

<div class="topic-metadata">

**Author:** [@nicolas](https://discourse.processing.org/u/nicolas)\
**Replies:** 10\
**Last updated:** [January 27, 2020, 9:23pm UTC](https://discourse.processing.org/t/display-images-randomly-by-clicking/17380 "2020-01-27T21:23:44Z")

</div>

Hello, I’m trying to display images (10 or more) randomly when you click on the canvas. At the moment there is only one image displayed, and I don’t know how to proceed for the rest. Should I use img(); or createImg(); …

---

## [Drawing constraint](https://discourse.processing.org/t/drawing-constraint/16367)

<div class="topic-metadata">

**Author:** [@nicolas](https://discourse.processing.org/u/nicolas)\
**Replies:** 5\
**Last updated:** [January 27, 2020, 6:05pm UTC](https://discourse.processing.org/t/drawing-constraint/16367 "2020-01-27T18:05:36Z")

</div>

Hi, I want to make “invisible walls” in my sketch so that when you draw a trace with the mouse, it is blocked and the line is drawn around this form of “invisible walls”. I tried with the p5 Play library but it works w…

---

## [How to code a YOUTUBE subscriber counter?](https://discourse.processing.org/t/how-to-code-a-youtube-subscriber-counter/17004)

<div class="topic-metadata">

**Author:** [@iobotic](https://discourse.processing.org/u/iobotic)\
**Replies:** 5\
**Last updated:** [January 27, 2020, 5:10pm UTC](https://discourse.processing.org/t/how-to-code-a-youtube-subscriber-counter/17004 "2020-01-27T17:10:25Z")

</div>

Hello Friends! My name is Hugo, I’m a new for here and I’m happy to join the community. :hugs: I would like to know how can I make a Youtube Subs Counter using processing? :star\_struck: My Idea is to use a Raspberry Pi…

---

## [Output to PDF every 5 Seconds](https://discourse.processing.org/t/output-to-pdf-every-5-seconds/17125)

<div class="topic-metadata">

**Author:** [@FutureDays](https://discourse.processing.org/u/FutureDays)\
**Replies:** 2\
**Last updated:** [January 21, 2020, 4:25pm UTC](https://discourse.processing.org/t/output-to-pdf-every-5-seconds/17125 "2020-01-21T16:25:28Z")

</div>

Hello, I am a total newbie to Processing but am loving the learning. I have a question, how do I write a line of code that outputs a PDF to a folder on the desktop every 5 seconds. I have placed my code here for refer…

---

## [Unable to write data in a text file](https://discourse.processing.org/t/unable-to-write-data-in-a-text-file/17374)

<div class="topic-metadata">

**Author:** [@iamgsshetty](https://discourse.processing.org/u/iamgsshetty)\
**Replies:** 2\
**Last updated:** [January 27, 2020, 2:43pm UTC](https://discourse.processing.org/t/unable-to-write-data-in-a-text-file/17374 "2020-01-27T14:43:55Z")

</div>

File getting created successfully but data is not getting written in file. code:- PrintWriter output; void setup() { // Create a new file in the sketch directory output = createWriter(“positions.txt”); } void draw…

---

## [Why Ain't my Code working?](https://discourse.processing.org/t/why-aint-my-code-working/16800)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 2\
**Last updated:** [January 27, 2020, 2:05pm UTC](https://discourse.processing.org/t/why-aint-my-code-working/16800 "2020-01-27T14:05:05Z")

</div>

I’m trying to make a card game, but when I try to get the player’s hand in the correct spot. All 5 cards go to the last spot instead of staying where they suppose to. here setup Table enemyT; TableRow tr; int s = 75; A…

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

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