# Processing

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

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

**Page:** 46

---

## [Help with analyzing file with Sound Library](https://discourse.processing.org/t/help-with-analyzing-file-with-sound-library/41166)

<div class="topic-metadata">

**Author:** [@andew](https://discourse.processing.org/u/andew)\
**Replies:** 2\
**Last updated:** [March 6, 2023, 8:32pm UTC](https://discourse.processing.org/t/help-with-analyzing-file-with-sound-library/41166 "2023-03-06T20:32:27Z")

</div>

Hello, I am extremely new to coding so apologies if my formatting or knowledge is off. I am trying to analyze a sound file using the Sound Library and display a visualization of it using the Fast Fourier Transform (FFT)…

---

## [Fading and Zoom (image slideshow)](https://discourse.processing.org/t/fading-and-zoom-image-slideshow/40812)

<div class="topic-metadata">

**Author:** [@ajaynischal98](https://discourse.processing.org/u/ajaynischal98)\
**Replies:** 33\
**Last updated:** [March 5, 2023, 10:31pm UTC](https://discourse.processing.org/t/fading-and-zoom-image-slideshow/40812 "2023-03-05T22:31:45Z")

</div>

Hi I have a txt file that contains image names. I am trying to take the first image and fade slowly into the second image. I then want to start zooming into the second image to about 500x. I tried to do it but for some r…

---

## [NullPointerExpection in for loop](https://discourse.processing.org/t/nullpointerexpection-in-for-loop/41150)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 3\
**Last updated:** [March 5, 2023, 11:09am UTC](https://discourse.processing.org/t/nullpointerexpection-in-for-loop/41150 "2023-03-05T11:09:37Z")

</div>

for(int i = maxlayers+1; i \> 0; i-=1) { image(layers\[i+1\], xpos, ypos, xsize\*zoomx, ysize\*zoomy); } This code for some reason just return “NPE NullPointerExpection” why? i dont know! thats why im asking you! A…

---

## [How to deactivate 50.000ms start timer?](https://discourse.processing.org/t/how-to-deactivate-50-000ms-start-timer/41143)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 1\
**Last updated:** [March 4, 2023, 7:57pm UTC](https://discourse.processing.org/t/how-to-deactivate-50-000ms-start-timer/41143 "2023-03-04T19:57:55Z")

</div>

How can i deactivate that, if an app needs more than 50.000ms to startup, that it automaticly returns an Error, because i want to start 512 3k pgraphics at once, and the programm does not lag, if i do it while its runnin…

---

## [How do i change the icon of the exported exe?](https://discourse.processing.org/t/how-do-i-change-the-icon-of-the-exported-exe/41140)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 4\
**Last updated:** [March 4, 2023, 3:43pm UTC](https://discourse.processing.org/t/how-do-i-change-the-icon-of-the-exported-exe/41140 "2023-03-04T15:43:12Z")

</div>

I want to change the icon of the exe, when compiled it shows the basic Processing icon. How do i change it? Ressource hacker works, but if i try opening it it opens with an error.

---

## [How to target a specific connection on macos](https://discourse.processing.org/t/how-to-target-a-specific-connection-on-macos/41113)

<div class="topic-metadata">

**Author:** [@npuckett](https://discourse.processing.org/u/npuckett)\
**Replies:** 7\
**Last updated:** [March 4, 2023, 3:33pm UTC](https://discourse.processing.org/t/how-to-target-a-specific-connection-on-macos/41113 "2023-03-04T15:33:23Z")

</div>

So, I’m working on a sketch that reads and relays data from a Universal UR10E. Grabs the data over TCP modbus, formats the data 2 ways. Osc that it sends to localhost Websocket as JSON The wired ethernet connection t…

---

## [Possible to change top bars layout? (window frame color)](https://discourse.processing.org/t/possible-to-change-top-bars-layout-window-frame-color/40914)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 3\
**Last updated:** [March 4, 2023, 3:26pm UTC](https://discourse.processing.org/t/possible-to-change-top-bars-layout-window-frame-color/40914 "2023-03-04T15:26:03Z")

</div>

Is it possible to change how the bar looks in Windows, where the minimize, window & exit buttons are. Can you change the color of that?

---

## [Movie Maker version 4.1.3](https://discourse.processing.org/t/movie-maker-version-4-1-3/41102)

<div class="topic-metadata">

**Author:** [@Kylle](https://discourse.processing.org/u/Kylle)\
**Replies:** 3\
**Last updated:** [March 3, 2023, 9:39am UTC](https://discourse.processing.org/t/movie-maker-version-4-1-3/41102 "2023-03-03T09:39:04Z")

</div>

Hi I am using, for me, a new version of Processing (4.1.3). I have produced a number of image files: 1.png, 2.png… 250.png and have the saved in a special frame folder. When I am running the movie maker it does not …

---

## [Random object of four in each square of a grid](https://discourse.processing.org/t/random-object-of-four-in-each-square-of-a-grid/41034)

<div class="topic-metadata">

**Author:** [@i-draw-monkeys](https://discourse.processing.org/u/i-draw-monkeys)\
**Replies:** 13\
**Last updated:** [March 2, 2023, 7:03pm UTC](https://discourse.processing.org/t/random-object-of-four-in-each-square-of-a-grid/41034 "2023-03-02T19:03:17Z")

</div>

I feel like I should know the answer to this or figure it out but I feel stuck. I am drawing a grid, let’s say 4x4, and I have 4 different shapes or items that I want to draw. Each frame I want each square of my grid to…

---

## [Diagonal move not working](https://discourse.processing.org/t/diagonal-move-not-working/41103)

<div class="topic-metadata">

**Author:** [@hokuto](https://discourse.processing.org/u/hokuto)\
**Replies:** 3\
**Last updated:** [March 2, 2023, 4:27pm UTC](https://discourse.processing.org/t/diagonal-move-not-working/41103 "2023-03-02T16:27:04Z")

</div>

//clase jugador-------------------------------------- class Jugador extends Padre{ private float x,y,velocidad; private PImage grafico = loadImage("jugador.png"); private Disparo disparo1; private int contador; …

---

## [Help with projecting a 3D point to the 2D view](https://discourse.processing.org/t/help-with-projecting-a-3d-point-to-the-2d-view/41112)

<div class="topic-metadata">

**Author:** [@Flon](https://discourse.processing.org/u/Flon)\
**Replies:** 4\
**Last updated:** [March 2, 2023, 11:02am UTC](https://discourse.processing.org/t/help-with-projecting-a-3d-point-to-the-2d-view/41112 "2023-03-02T11:02:18Z")

</div>

Hi all, can anyone offer insight into how the PGraphics3D “projection” and “modelview” (or combined “projmodelview” ) matrices are used to convert a 3d vector in the scene to a final 2d vector on the rasterized screen? I…

---

## [1st person camera](https://discourse.processing.org/t/1st-person-camera/41106)

<div class="topic-metadata">

**Author:** [@09husky](https://discourse.processing.org/u/09husky)\
**Replies:** 1\
**Last updated:** [March 1, 2023, 10:23pm UTC](https://discourse.processing.org/t/1st-person-camera/41106 "2023-03-01T22:23:38Z")

</div>

I am having some trouble with the camera function at the end. It does work to a decent extent, but I am wondering if anyone can help me solve the following problems with it: sensitivity too high for looking up and down …

---

## [Help with coding syntax errors](https://discourse.processing.org/t/help-with-coding-syntax-errors/41110)

<div class="topic-metadata">

**Author:** [@danielsj14](https://discourse.processing.org/u/danielsj14)\
**Replies:** 2\
**Last updated:** [March 1, 2023, 10:06pm UTC](https://discourse.processing.org/t/help-with-coding-syntax-errors/41110 "2023-03-01T22:06:14Z")

</div>

I’m trying to code a moving grid pattern and I keep getting an error message when I try to run my code, but I can’t figure out why. This is what my code looks like: float x = 0; float y = 0; float spacing = 50; //One a…

---

## [Span not covering all screens](https://discourse.processing.org/t/span-not-covering-all-screens/41098)

<div class="topic-metadata">

**Author:** [@larry](https://discourse.processing.org/u/larry)\
**Replies:** 0\
**Last updated:** [February 28, 2023, 11:47pm UTC](https://discourse.processing.org/t/span-not-covering-all-screens/41098 "2023-02-28T23:47:29Z")

</div>

The SPAN function does not seem to be working correctly with the default renderer on my MacBook Pro, the sketch is fullscreen on the first tow screens but only covers about one third of the third screen. It seems to work…

---

## [Problem with P2D](https://discourse.processing.org/t/problem-with-p2d/41096)

<div class="topic-metadata">

**Author:** [@Omri](https://discourse.processing.org/u/Omri)\
**Replies:** 0\
**Last updated:** [February 28, 2023, 7:27pm UTC](https://discourse.processing.org/t/problem-with-p2d/41096 "2023-02-28T19:27:58Z")

</div>

I’m doing Shiffman’s algorithm of motion detection, but I want to use P2D. I noticed that there are “noise” in my video only when I use P2D, with the normal renderer there isn’t any problem. even when I just read pixel…

---

## [How do I make randomly generated objects move?](https://discourse.processing.org/t/how-do-i-make-randomly-generated-objects-move/41091)

<div class="topic-metadata">

**Author:** [@jrubesch](https://discourse.processing.org/u/jrubesch)\
**Replies:** 5\
**Last updated:** [February 28, 2023, 7:18pm UTC](https://discourse.processing.org/t/how-do-i-make-randomly-generated-objects-move/41091 "2023-02-28T19:18:00Z")

</div>

Hi! I’m trying to code something like scrolling credits with some text. I loaded each text block as an image and generated the text order randomly. I now want those text blocks to move up the screen like movie-ending cre…

---

## [Processing won't open on Mac](https://discourse.processing.org/t/processing-wont-open-on-mac/40885)

<div class="topic-metadata">

**Author:** [@Oli1](https://discourse.processing.org/u/Oli1)\
**Replies:** 5\
**Last updated:** [February 28, 2023, 11:48am UTC](https://discourse.processing.org/t/processing-wont-open-on-mac/40885 "2023-02-28T11:48:25Z")

</div>

Hello, I’ve been using Processing since last year and some days ago I installed the latest version. It worked but today I tried opening it again and the window opens for a brief moment but then disappears. I tried deleti…

---

## [Export problem Processing](https://discourse.processing.org/t/export-problem-processing/41082)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 0\
**Last updated:** [February 28, 2023, 1:41am UTC](https://discourse.processing.org/t/export-problem-processing/41082 "2023-02-28T01:41:52Z")

</div>

When i try to export 1 the program dont open or 2 the program opens to a grey screen. Anyone know how to fix this?

---

## [Receive and send datas to the same port. Possible?](https://discourse.processing.org/t/receive-and-send-datas-to-the-same-port-possible/41064)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 2\
**Last updated:** [February 27, 2023, 9:09pm UTC](https://discourse.processing.org/t/receive-and-send-datas-to-the-same-port-possible/41064 "2023-02-27T21:09:05Z")

</div>

Hello ladies and gentlemen; I read and receive datas to and from twos differents serial usb ports. Is it possible to do this on the same serial port.? I tried but if i read data on the same serial.port, Processing tel…

---

## [How can i add a "Open with" function?](https://discourse.processing.org/t/how-can-i-add-a-open-with-function/41062)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 6\
**Last updated:** [February 27, 2023, 6:30pm UTC](https://discourse.processing.org/t/how-can-i-add-a-open-with-function/41062 "2023-02-27T18:30:37Z")

</div>

Is it possible to make with processing, that when i install a programm, there is a function like “open with app” dialog. so i could set in windows settings, that the processing app will be used to open images.

---

## [Process error column 4 dont exist](https://discourse.processing.org/t/process-error-column-4-dont-exist/41075)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 16\
**Last updated:** [February 27, 2023, 4:38pm UTC](https://discourse.processing.org/t/process-error-column-4-dont-exist/41075 "2023-02-27T16:38:19Z")

</div>

I’m coding a game and using tables. I have a bunch of lines of code that could easily be placed in a table to lessen the code, even though i’m sure everything is correct it keeps giving me an error. “Column 4 dont exist.…

---

## [FrameRate hiccups](https://discourse.processing.org/t/framerate-hiccups/11947)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 20\
**Last updated:** [February 26, 2023, 2:11pm UTC](https://discourse.processing.org/t/framerate-hiccups/11947 "2023-02-26T14:11:08Z")

</div>

I have experienced hiccups in my animations at the start of my animations and trying to understand why this happens. Is it Processing, Java or other? I have reduced it down to a simple example that displays frameRates b…

---

## [Very weird stuff going on with colors and transparency with the P2D renderer](https://discourse.processing.org/t/very-weird-stuff-going-on-with-colors-and-transparency-with-the-p2d-renderer/40924)

<div class="topic-metadata">

**Author:** [@PianoMastR64](https://discourse.processing.org/u/PianoMastR64)\
**Replies:** 8\
**Last updated:** [February 24, 2023, 3:20pm UTC](https://discourse.processing.org/t/very-weird-stuff-going-on-with-colors-and-transparency-with-the-p2d-renderer/40924 "2023-02-24T15:20:16Z")

</div>

PGraphics pg; void setup() { size(800, 800, P2D); pg = createGraphics(width, height, P2D); pg.beginDraw(); pg.noStroke(); pg.clear(); pg.fill(255, 127); pg.rect(0, 0, 195, height); printColor(pg.get…

---

## [Discord RPC integration](https://discourse.processing.org/t/discord-rpc-integration/18804)

<div class="topic-metadata">

**Author:** [@Ectalite](https://discourse.processing.org/u/Ectalite)\
**Replies:** 9\
**Last updated:** [February 23, 2023, 11:31am UTC](https://discourse.processing.org/t/discord-rpc-integration/18804 "2023-02-23T11:31:14Z")

</div>

Hello, I saw an issue on github recently that was about discord rpc Link here, but nothing were down since september 2019. One of processing contributor ( jeremydouglass ) redirected me to this forum. So I’m asking her…

---

## [How to make the computer think Processing is a camera (video capture device)?](https://discourse.processing.org/t/how-to-make-the-computer-think-processing-is-a-camera-video-capture-device/27696)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 11\
**Last updated:** [February 24, 2023, 1:49pm UTC](https://discourse.processing.org/t/how-to-make-the-computer-think-processing-is-a-camera-video-capture-device/27696 "2023-02-24T13:49:01Z")

</div>

I have heard of spout & syphon but I have no idea on how to get started. In these pandemic, videoconferencing, times, it could be fun to feed a sketch instead of me. I suppose one could do it with OBS too? I’m on Linu…

---

## [Get elements in JSONObject](https://discourse.processing.org/t/get-elements-in-jsonobject/41048)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 3\
**Last updated:** [February 24, 2023, 1:14pm UTC](https://discourse.processing.org/t/get-elements-in-jsonobject/41048 "2023-02-24T13:14:41Z")

</div>

I try to go in JSONObject but I don’t find a solution to go inside, except if I use knew key. But my purpose is going to the object to grad all informations from it, I don’t know the information in advance. I see the JS…

---

## [Help with code with images](https://discourse.processing.org/t/help-with-code-with-images/40917)

<div class="topic-metadata">

**Author:** [@ajaynischal98](https://discourse.processing.org/u/ajaynischal98)\
**Replies:** 3\
**Last updated:** [February 23, 2023, 6:22pm UTC](https://discourse.processing.org/t/help-with-code-with-images/40917 "2023-02-23T18:22:57Z")

</div>

ArrayList\<PImage\> images; int lastImageIndex = -1; int nextImageIndex = 0; float alphaValue = 0; float alphaShift = 0.004; // adjust speed, smaller = slower //Parabolic Zoom void setup() { fullScreen(P2…

---

## [Mapping a video texture on PShape](https://discourse.processing.org/t/mapping-a-video-texture-on-pshape/41014)

<div class="topic-metadata">

**Author:** [@animalfrommars](https://discourse.processing.org/u/animalfrommars)\
**Replies:** 4\
**Last updated:** [February 23, 2023, 4:35pm UTC](https://discourse.processing.org/t/mapping-a-video-texture-on-pshape/41014 "2023-02-23T16:35:13Z")

</div>

Hello, I’m trying to map a video image from a webcam on a PShape. It seems that colors are changing but the video image don’t appear… See my code below. Thank you for your help. import processing.video.\*; import pro…

---

## [Image() flickers when changing sketch size with windowResize()](https://discourse.processing.org/t/image-flickers-when-changing-sketch-size-with-windowresize/38952)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 4\
**Last updated:** [February 23, 2023, 3:44pm UTC](https://discourse.processing.org/t/image-flickers-when-changing-sketch-size-with-windowresize/38952 "2023-02-23T15:44:18Z")

</div>

Context: I’m trying to make a demo sketch for the new window methods in Processing 4.0 (which replace the old surface methods). I’m running in an issue where the image flickers at larger sizes.This happens even if I art…

---

## [How to set an area of pixels in an if statement?](https://discourse.processing.org/t/how-to-set-an-area-of-pixels-in-an-if-statement/41006)

<div class="topic-metadata">

**Author:** [@MaxU89](https://discourse.processing.org/u/MaxU89)\
**Replies:** 3\
**Last updated:** [February 23, 2023, 8:45am UTC](https://discourse.processing.org/t/how-to-set-an-area-of-pixels-in-an-if-statement/41006 "2023-02-23T08:45:15Z")

</div>

Hello. I need help with setting an area of pixels in an if statement. I am still kind of new here so please don’t pay attention to any wrong terminology I use. In an if statement I need to use not only the one position …

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

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