# Latest

**URL:** https://discourse.processing.org/latest.md?page=487

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

**Page:** 488

---

## [Different soundtrack for different modes](https://discourse.processing.org/t/different-soundtrack-for-different-modes/11172)

<div class="topic-metadata">

**Author:** [@anna](https://discourse.processing.org/u/anna)\
**Replies:** 2\
**Last updated:** [May 13, 2019, 5:08am UTC](https://discourse.processing.org/t/different-soundtrack-for-different-modes/11172 "2019-05-13T05:08:58Z")

</div>

Hello! I have this game, where I want a different soundtracks to play in the different modes. int mode = 0; int INTRO = 0; int KASSE = 1; int BUTIK = 2; int STUDY = 3; import processing.sound.\*; SoundFile file; Strin…

---

## [Movie file doesn't load](https://discourse.processing.org/t/movie-file-doesnt-load/11169)

<div class="topic-metadata">

**Author:** [@dehyde](https://discourse.processing.org/u/dehyde)\
**Replies:** 1\
**Last updated:** [May 13, 2019, 1:19am UTC](https://discourse.processing.org/t/movie-file-doesnt-load/11169 "2019-05-13T01:19:38Z")

</div>

Hi I’m trying to create an array of objects Each object contains some variables and a movie object For some reason, when calling on the movies duration() I’m getting information that doesn’t make sense (shows as 0.0),…

---

## [Read light sensor?](https://discourse.processing.org/t/read-light-sensor/11131)

<div class="topic-metadata">

**Author:** [@socraticbot](https://discourse.processing.org/u/socraticbot)\
**Replies:** 4\
**Last updated:** [May 12, 2019, 5:05pm UTC](https://discourse.processing.org/t/read-light-sensor/11131 "2019-05-12T17:05:45Z")

</div>

Hi all, I am working on a scanner that uses just the ambient light sensor and the screen as a camera scanner. The way this would work is that this psuedocode: turn all screen black. turn pixel 1 white full brightness. …

---

## [Why are my buttons connected?](https://discourse.processing.org/t/why-are-my-buttons-connected/11167)

<div class="topic-metadata">

**Author:** [@anna](https://discourse.processing.org/u/anna)\
**Replies:** 7\
**Last updated:** [May 12, 2019, 3:10pm UTC](https://discourse.processing.org/t/why-are-my-buttons-connected/11167 "2019-05-12T15:10:19Z")

</div>

I followed this example when making my own buttons: Processing buttons example I want the colour of the button to change, when the mouse is hovering above it, and the background to change when the first button is presse…

---

## [Understanding applymatrix() and linear algebra](https://discourse.processing.org/t/understanding-applymatrix-and-linear-algebra/11068)

<div class="topic-metadata">

**Author:** [@Avatrin](https://discourse.processing.org/u/Avatrin)\
**Replies:** 4\
**Last updated:** [May 12, 2019, 2:51pm UTC](https://discourse.processing.org/t/understanding-applymatrix-and-linear-algebra/11068 "2019-05-12T14:51:37Z")

</div>

Hi How does the applymatrix transformation work in relation to the more “conventional” coordinate systems since, while the x-axis is like in conventional mathematics, the y-axis is not since it points down. What about …

---

## [Mandelbrot set coding challenge](https://discourse.processing.org/t/mandelbrot-set-coding-challenge/11162)

<div class="topic-metadata">

**Author:** [@FractalGenieGod](https://discourse.processing.org/u/FractalGenieGod)\
**Replies:** 13\
**Last updated:** [May 12, 2019, 12:04pm UTC](https://discourse.processing.org/t/mandelbrot-set-coding-challenge/11162 "2019-05-12T12:04:46Z")

</div>

Coding Challenge #21: Mandelbrot Set. Youtube. @\[14:29\] (https://www.youtube.com/watch?v=6z7GQewK-Ks&t=869s) Can someone help me please @\[14:29\] when we are going to test to see if it’s all working I keep getting this s…

---

## [Why is my button placed like that?](https://discourse.processing.org/t/why-is-my-button-placed-like-that/11165)

<div class="topic-metadata">

**Author:** [@anna](https://discourse.processing.org/u/anna)\
**Replies:** 2\
**Last updated:** [May 12, 2019, 11:36am UTC](https://discourse.processing.org/t/why-is-my-button-placed-like-that/11165 "2019-05-12T11:36:56Z")

</div>

I have: void setup() { size(1250,800); } and I would like my button: rect(495,500,260,260,35); to be placed in the middle of the screen. So I thought I could make a button rect(button2X, buttonY, buttonSize, b…

---

## [Problem with Big Decimal - Calculation process slows down](https://discourse.processing.org/t/problem-with-big-decimal-calculation-process-slows-down/11144)

<div class="topic-metadata">

**Author:** [@humayung](https://discourse.processing.org/u/humayung)\
**Replies:** 4\
**Last updated:** [May 12, 2019, 11:14am UTC](https://discourse.processing.org/t/problem-with-big-decimal-calculation-process-slows-down/11144 "2019-05-12T11:14:48Z")

</div>

Hey guys! i’m very new to Big Decimal i attempting to calculate mandelbrot set with high precision for ultra zoom capability, so i’m using Big Decimal to perform calculation. while calculating, the loop slows down. i …

---

## [Collision detection doesn't work when using translate() and rotate() - p5.collide2d](https://discourse.processing.org/t/collision-detection-doesnt-work-when-using-translate-and-rotate-p5-collide2d/11116)

<div class="topic-metadata">

**Author:** [@feelthemall](https://discourse.processing.org/u/feelthemall)\
**Replies:** 3\
**Last updated:** [May 12, 2019, 10:37am UTC](https://discourse.processing.org/t/collision-detection-doesnt-work-when-using-translate-and-rotate-p5-collide2d/11116 "2019-05-12T10:37:55Z")

</div>

So I’m using the p5.collide2d library here, but the problem is still the same when I use something like: if ((mouseX \> x) && (mouseX \< x+w) && (mouseY \> y) && (mouseY \< y+h)) {} When I use translate() and rotate() t…

---

## [Functions argument](https://discourse.processing.org/t/functions-argument/11010)

<div class="topic-metadata">

**Author:** [@Reggi](https://discourse.processing.org/u/Reggi)\
**Replies:** 5\
**Last updated:** [May 12, 2019, 10:14am UTC](https://discourse.processing.org/t/functions-argument/11010 "2019-05-12T10:14:31Z")

</div>

Hi how can I return two values from a void function? I have already used c++ and there you could use & in these situations. Is there something like this in processing? void example (char c, int a, int b){ if(c=='y'…

---

## [Random Images loop](https://discourse.processing.org/t/random-images-loop/11159)

<div class="topic-metadata">

**Author:** [@bkielak](https://discourse.processing.org/u/bkielak)\
**Replies:** 2\
**Last updated:** [May 12, 2019, 10:04am UTC](https://discourse.processing.org/t/random-images-loop/11159 "2019-05-12T10:04:51Z")

</div>

Hi guys, I’m a graphic designer and I’m currently working on the project in regards to the computation so I wanted to create randomized images overlap in processing. So far I made a basic code but it doesn’t really work…

---

## [Processing test(I would need it solutions)](https://discourse.processing.org/t/processing-test-i-would-need-it-solutions/11154)

<div class="topic-metadata">

**Author:** [@derecH](https://discourse.processing.org/u/derecH)\
**Replies:** 3\
**Last updated:** [May 12, 2019, 8:34am UTC](https://discourse.processing.org/t/processing-test-i-would-need-it-solutions/11154 "2019-05-12T08:34:21Z")

</div>

During the course, the graphical functions of the language are displayed only for the graphical functions of the language point () function and color adjustment functions can be used. • Our applications should have the…

---

## [Alpha weird behaviour](https://discourse.processing.org/t/alpha-weird-behaviour/11132)

<div class="topic-metadata">

**Author:** [@litiec](https://discourse.processing.org/u/litiec)\
**Replies:** 2\
**Last updated:** [May 12, 2019, 7:59am UTC](https://discourse.processing.org/t/alpha-weird-behaviour/11132 "2019-05-12T07:59:31Z")

</div>

Dear All I tried to research about it but I couldn’t find anything. I have this simple example: void setup(){ size(600,600, P3D); } void draw(){ background(0); translate(width/2, height/2, 0); rotateY(radia…

---

## [Processing Script very slow or not running at all](https://discourse.processing.org/t/processing-script-very-slow-or-not-running-at-all/11061)

<div class="topic-metadata">

**Author:** [@ernestwzh](https://discourse.processing.org/u/ernestwzh)\
**Replies:** 1\
**Last updated:** [May 12, 2019, 7:40am UTC](https://discourse.processing.org/t/processing-script-very-slow-or-not-running-at-all/11061 "2019-05-12T07:40:01Z")

</div>

Hello, I am trying to get my Kinect to control the framerate and opacity of a video file that is playing. The script either runs really slowly or not at all. I tried troubleshooting: Before using the Kinect, I tried u…

---

## [Drawing with code](https://discourse.processing.org/t/drawing-with-code/11148)

<div class="topic-metadata">

**Author:** [@dianap](https://discourse.processing.org/u/dianap)\
**Replies:** 1\
**Last updated:** [May 12, 2019, 6:21am UTC](https://discourse.processing.org/t/drawing-with-code/11148 "2019-05-12T06:21:29Z")

</div>

Hi! so I found this artists page full of drawings with code and I love it so much, though I dont know how to do that so if anybody has any recommendations on tutorials or introduction to this kind of processing coding th…

---

## [How do I assign 2 specific colors to an array of objects](https://discourse.processing.org/t/how-do-i-assign-2-specific-colors-to-an-array-of-objects/10984)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 10\
**Last updated:** [May 12, 2019, 2:30am UTC](https://discourse.processing.org/t/how-do-i-assign-2-specific-colors-to-an-array-of-objects/10984 "2019-05-12T02:30:10Z")

</div>

I would like to assign 2 colors to this array. However, I do not want each color confined to an area within the sketch (as it appears currently). How do rewrite so that half of the jellybeans are dark red and hal…

---

## [Problem about creating water waves when using mass spring damper system](https://discourse.processing.org/t/problem-about-creating-water-waves-when-using-mass-spring-damper-system/3101)

<div class="topic-metadata">

**Author:** [@zzz.mcw](https://discourse.processing.org/u/zzz.mcw)\
**Replies:** 6\
**Last updated:** [May 11, 2019, 8:22pm UTC](https://discourse.processing.org/t/problem-about-creating-water-waves-when-using-mass-spring-damper-system/3101 "2019-05-11T20:22:15Z")

</div>

I got a problem when trying to make water waves.I only got one jumping surfacepoint on a still water surface. Here is the code. lake lake; void setup() { size(400, 500); lake = new lake(); } void draw() { backgro…

---

## [Run sketch on dedicated gpu](https://discourse.processing.org/t/run-sketch-on-dedicated-gpu/11135)

<div class="topic-metadata">

**Author:** [@b\_and\_z](https://discourse.processing.org/u/b_and_z)\
**Replies:** 2\
**Last updated:** [May 11, 2019, 6:12pm UTC](https://discourse.processing.org/t/run-sketch-on-dedicated-gpu/11135 "2019-05-11T18:12:10Z")

</div>

So my setup is a windows 10 with an integrated gpu (HD Graphics 4600) and a dedicated gpu (NVIDIA GeForce GT 750M). Now I’m trying to VJ with processing\>spout\>VJ software (Resolume). When I run the spout sender example f…

---

## [How make an interface where you can upload a file](https://discourse.processing.org/t/how-make-an-interface-where-you-can-upload-a-file/11024)

<div class="topic-metadata">

**Author:** [@niciaguero](https://discourse.processing.org/u/niciaguero)\
**Replies:** 2\
**Last updated:** [May 11, 2019, 6:07pm UTC](https://discourse.processing.org/t/how-make-an-interface-where-you-can-upload-a-file/11024 "2019-05-11T18:07:08Z")

</div>

Hi, How can I make an interface where the user can browse the computer and upload any audio file they want through processing? Thanks for the help, Niciaguero

---

## [Creating an ocean simulation using PixelFlow](https://discourse.processing.org/t/creating-an-ocean-simulation-using-pixelflow/11020)

<div class="topic-metadata">

**Author:** [@BongoTurtle](https://discourse.processing.org/u/BongoTurtle)\
**Replies:** 1\
**Last updated:** [May 11, 2019, 6:05pm UTC](https://discourse.processing.org/t/creating-an-ocean-simulation-using-pixelflow/11020 "2019-05-11T18:05:39Z")

</div>

I’m trying to create an interactive desktop background using Processing and I need a simulation of a 2d ocean. The idea is for you to be able to drag on the water creating waves which will move fish. I’ve started using t…

---

## [LocalDateTime Error](https://discourse.processing.org/t/localdatetime-error/11086)

<div class="topic-metadata">

**Author:** [@Americanjoghurt](https://discourse.processing.org/u/Americanjoghurt)\
**Replies:** 4\
**Last updated:** [May 11, 2019, 8:57am UTC](https://discourse.processing.org/t/localdatetime-error/11086 "2019-05-11T08:57:44Z")

</div>

Hi, I have the problem, that each Time I want to send my code with java.time.LocalDateTime includet it throws an Excepiton. Code without any Libarys works just fine. Want’s the Problem und how can I solve it?

---

## [Video not playing on one particular computer bought only for this project](https://discourse.processing.org/t/video-not-playing-on-one-particular-computer-bought-only-for-this-project/11083)

<div class="topic-metadata">

**Author:** [@DanielHUN](https://discourse.processing.org/u/DanielHUN)\
**Replies:** 2\
**Last updated:** [May 11, 2019, 2:34pm UTC](https://discourse.processing.org/t/video-not-playing-on-one-particular-computer-bought-only-for-this-project/11083 "2019-05-11T14:34:15Z")

</div>

So we bought a machine for simple green screen with webcam should be up and running on an exhibition. I wrote a simple code wich works on any other computer we ve tested on. Not on the one it should. Weirdly enough if we…

---

## [Problem with spring force in growth algorithm](https://discourse.processing.org/t/problem-with-spring-force-in-growth-algorithm/10770)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 5\
**Last updated:** [May 11, 2019, 12:39pm UTC](https://discourse.processing.org/t/problem-with-spring-force-in-growth-algorithm/10770 "2019-05-11T12:39:32Z")

</div>

Dear all, I would need a hand to help me find what is wrong with the following implementation of a sketch originally relying on the iGeo library (not compatible with Processing 3). Simply put, the algorithm consists in…

---

## [Resolution and Listing of Webcams](https://discourse.processing.org/t/resolution-and-listing-of-webcams/10752)

<div class="topic-metadata">

**Author:** [@jimeex](https://discourse.processing.org/u/jimeex)\
**Replies:** 4\
**Last updated:** [May 11, 2019, 12:29pm UTC](https://discourse.processing.org/t/resolution-and-listing-of-webcams/10752 "2019-05-11T12:29:58Z")

</div>

Hello everyone, We have an art project and we call someone to build a code that will allow us to switch between 3 webcams, with a duration and choice of the webcam, like a musical partition. So he write this : // //…

---

## [Minim: sound cracks on Pan and Gain](https://discourse.processing.org/t/minim-sound-cracks-on-pan-and-gain/11102)

<div class="topic-metadata">

**Author:** [@morisil](https://discourse.processing.org/u/morisil)\
**Replies:** 6\
**Last updated:** [May 11, 2019, 10:52am UTC](https://discourse.processing.org/t/minim-sound-cracks-on-pan-and-gain/11102 "2019-05-11T10:52:05Z")

</div>

I am having problem with controlling the playback of my audio files. The sound is somehow slightly chopped when pan and gain values are adjusted, especially if it is happening rapidly. Here is the code to reproduce the i…

---

## [Help with class and draw](https://discourse.processing.org/t/help-with-class-and-draw/10979)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 10\
**Last updated:** [May 6, 2019, 7:13pm UTC](https://discourse.processing.org/t/help-with-class-and-draw/10979 "2019-05-06T19:13:36Z")

</div>

Hi, I have a class with the variable lvl=1;. the problem is I want to display the “1” in draw by doing something like this: text(“lvl”,200,200,100,100); however this doesn’t work

---

## [Different behaviors of default vs. P2D renderer with low-alpha curves](https://discourse.processing.org/t/different-behaviors-of-default-vs-p2d-renderer-with-low-alpha-curves/10982)

<div class="topic-metadata">

**Author:** [@blakej](https://discourse.processing.org/u/blakej)\
**Replies:** 12\
**Last updated:** [May 11, 2019, 8:11am UTC](https://discourse.processing.org/t/different-behaviors-of-default-vs-p2d-renderer-with-low-alpha-curves/10982 "2019-05-11T08:11:00Z")

</div>

Hi all, I’m trying to understand a difference in behavior between the default 2D renderer and the P2D renderer. In short, the default renderer seems to generate a “softer” texture when overlapping many curves with low …

---

## [Save to SVG with edges visible](https://discourse.processing.org/t/save-to-svg-with-edges-visible/11117)

<div class="topic-metadata">

**Author:** [@pierdr](https://discourse.processing.org/u/pierdr)\
**Replies:** 2\
**Last updated:** [May 11, 2019, 5:43am UTC](https://discourse.processing.org/t/save-to-svg-with-edges-visible/11117 "2019-05-11T05:43:03Z")

</div>

Hi, I’m trying to save a 3D canvas from Processing to SVG. I found great the use of beginRaw and endRaw. But I don’t understand how to save into the SVG just the edges that are visible. What I would like is to export …

---

## [Printing P3D sketch to PDF](https://discourse.processing.org/t/printing-p3d-sketch-to-pdf/10913)

<div class="topic-metadata">

**Author:** [@TobiasReber](https://discourse.processing.org/u/TobiasReber)\
**Replies:** 2\
**Last updated:** [May 10, 2019, 4:58pm UTC](https://discourse.processing.org/t/printing-p3d-sketch-to-pdf/10913 "2019-05-10T16:58:11Z")

</div>

Hi all, first time poster with a newbie question: I’d like to print to PDF the results of some sketches I’m doing with random walkers drawing lots spheres. I took Example 4 from the “Print” tutorial and modified it slig…

---

## [Help with a short game code](https://discourse.processing.org/t/help-with-a-short-game-code/11108)

<div class="topic-metadata">

**Author:** [@majR](https://discourse.processing.org/u/majR)\
**Replies:** 4\
**Last updated:** [May 10, 2019, 4:21pm UTC](https://discourse.processing.org/t/help-with-a-short-game-code/11108 "2019-05-10T16:21:02Z")

</div>

when i try to remove a part of a arraylist it says the error “ConcurrentModificationException” here is the file : https://drive.google.com/open?id=1-NATnwPv0Qw3abEjZzP8rBFMXgwngVrL here is what gives the error for(Las…

[Previous page](https://discourse.processing.org/latest.md?page=486)

[Next page](https://discourse.processing.org/latest.md?page=488)
