# Processing

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

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

**Page:** 133

---

## [Making random only appear once](https://discourse.processing.org/t/making-random-only-appear-once/29783)

<div class="topic-metadata">

**Author:** [@yagirl\_belle](https://discourse.processing.org/u/yagirl_belle)\
**Replies:** 5\
**Last updated:** [May 9, 2021, 1:47am UTC](https://discourse.processing.org/t/making-random-only-appear-once/29783 "2021-05-09T01:47:20Z")

</div>

PLEASE DO NOT RUN THIS CODE IF YOU HAVE EPILEPSY So I was able to create randomly generated green colours for a golf course, however it is consistently running and I don’t know what kind of ‘if’ statement I should be pu…

---

## [When i build this application it just makes a blank grey window](https://discourse.processing.org/t/when-i-build-this-application-it-just-makes-a-blank-grey-window/28642)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 5\
**Last updated:** [May 8, 2021, 10:17pm UTC](https://discourse.processing.org/t/when-i-build-this-application-it-just-makes-a-blank-grey-window/28642 "2021-05-08T22:17:46Z")

</div>

okay i’m sure this is a very common problem but i haven’t found anything helpful, i’m just getting a totally blank grey sketch window when building a processing app for mac. this is the first time i’ve had this error, ev…

---

## [While loop is not working in processing](https://discourse.processing.org/t/while-loop-is-not-working-in-processing/29954)

<div class="topic-metadata">

**Author:** [@nothingelse](https://discourse.processing.org/u/nothingelse)\
**Replies:** 8\
**Last updated:** [May 8, 2021, 6:09pm UTC](https://discourse.processing.org/t/while-loop-is-not-working-in-processing/29954 "2021-05-08T18:09:32Z")

</div>

I am beginner in processing, just started few days ago. I am learning while loop now but when i run the program, while loop does not seem to be working. I tried so much but still don’t know what problem is occuring floa…

---

## [Why does drawing an image for the first time slow down the sketch](https://discourse.processing.org/t/why-does-drawing-an-image-for-the-first-time-slow-down-the-sketch/29909)

<div class="topic-metadata">

**Author:** [@s31](https://discourse.processing.org/u/s31)\
**Replies:** 10\
**Last updated:** [May 8, 2021, 1:38pm UTC](https://discourse.processing.org/t/why-does-drawing-an-image-for-the-first-time-slow-down-the-sketch/29909 "2021-05-08T13:38:35Z")

</div>

Every time my code uses a new image, my sketch slows down considerably and I don’t understand why. I’m loading all of my images in the setup() function like everyone says I should, so I don’t understand why this is happe…

---

## [Create Visual Scripting Tool / Mode](https://discourse.processing.org/t/create-visual-scripting-tool-mode/29958)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 1\
**Last updated:** [May 8, 2021, 10:45am UTC](https://discourse.processing.org/t/create-visual-scripting-tool-mode/29958 "2021-05-08T10:45:28Z")

</div>

Hey, I recently watched a few videos about Unreal Engines Blueprint (Visual Scripting Language) and wondered if I could program a mode / tool for processing (JAVA) with which you can visual script. I would like to do it…

---

## [Slow down object's speed](https://discourse.processing.org/t/slow-down-objects-speed/29937)

<div class="topic-metadata">

**Author:** [@akira](https://discourse.processing.org/u/akira)\
**Replies:** 11\
**Last updated:** [May 8, 2021, 7:13am UTC](https://discourse.processing.org/t/slow-down-objects-speed/29937 "2021-05-08T07:13:38Z")

</div>

Hello! I’m a bit stuck with my conditional statement for this basic program I’m working on. Two objects at different y coordinates start moving towards the width of the screen at varying speeds. When they approach each o…

---

## [Reflect color of one object to another object through cursor position](https://discourse.processing.org/t/reflect-color-of-one-object-to-another-object-through-cursor-position/29888)

<div class="topic-metadata">

**Author:** [@joelm03](https://discourse.processing.org/u/joelm03)\
**Replies:** 13\
**Last updated:** [May 7, 2021, 2:49pm UTC](https://discourse.processing.org/t/reflect-color-of-one-object-to-another-object-through-cursor-position/29888 "2021-05-07T14:49:27Z")

</div>

I am trying to have a gradient RGB rectangle to reflect each color on a bigger rectangle depending on the mouse’s position. I was able to come up with this: void draw() { noStroke(); for (i = 0;i \< width; i++) { fil…

---

## [Function parameters causing unwanted animation](https://discourse.processing.org/t/function-parameters-causing-unwanted-animation/29940)

<div class="topic-metadata">

**Author:** [@theta](https://discourse.processing.org/u/theta)\
**Replies:** 1\
**Last updated:** [May 7, 2021, 2:38pm UTC](https://discourse.processing.org/t/function-parameters-causing-unwanted-animation/29940 "2021-05-07T14:38:48Z")

</div>

Hey everyone. I started exploring functions with parameters and can’t for the life of me figure out why the example below is animating. Waves w1 = new Waves(); float amp = 100; float phase = 1; float freq = 100; float …

---

## [Question: Running multiple draw loops simultaneously in a grid](https://discourse.processing.org/t/question-running-multiple-draw-loops-simultaneously-in-a-grid/29927)

<div class="topic-metadata">

**Author:** [@markcburke](https://discourse.processing.org/u/markcburke)\
**Replies:** 5\
**Last updated:** [May 7, 2021, 1:29pm UTC](https://discourse.processing.org/t/question-running-multiple-draw-loops-simultaneously-in-a-grid/29927 "2021-05-07T13:29:54Z")

</div>

I’m quite new to processing and am interested in using it to generate grids of semi-randomized objects of various kinds. I’ve managed to produce code that can generate the kind of objects that I want, but I don’t know ho…

---

## [AudioIn shared access](https://discourse.processing.org/t/audioin-shared-access/29935)

<div class="topic-metadata">

**Author:** [@ianef](https://discourse.processing.org/u/ianef)\
**Replies:** 2\
**Last updated:** [May 7, 2021, 11:41am UTC](https://discourse.processing.org/t/audioin-shared-access/29935 "2021-05-07T11:41:13Z")

</div>

First off I’d like to say I’m new to Processing and it’s just GREAT! :grinning: I’m trying to work out if it’s possible to have shared access to an audio input device. Windows certainly supports this but the javax.sound…

---

## [Get all children from SVG](https://discourse.processing.org/t/get-all-children-from-svg/29932)

<div class="topic-metadata">

**Author:** [@thesandrobrito](https://discourse.processing.org/u/thesandrobrito)\
**Replies:** 8\
**Last updated:** [May 7, 2021, 11:36am UTC](https://discourse.processing.org/t/get-all-children-from-svg/29932 "2021-05-07T11:36:32Z")

</div>

Hi Everyone. I came back to processing after a few years of not coding anything and I am struggling with something I think I could do before. I’m looking to draw SVGs with the flexibility of changing the colours of the…

---

## [Reading barcodes](https://discourse.processing.org/t/reading-barcodes/29868)

<div class="topic-metadata">

**Author:** [@Th3cG](https://discourse.processing.org/u/Th3cG)\
**Replies:** 28\
**Last updated:** [May 7, 2021, 6:44am UTC](https://discourse.processing.org/t/reading-barcodes/29868 "2021-05-07T06:44:28Z")

</div>

Ciao! I’d like to scan some UPC barcodes to get the product number, and after some research I unsuccessfully used the following libraries Zxing for Processing (unable to load some plugins for gstreamer 1.0) and QRCode…

---

## [Issue in ellipse collision](https://discourse.processing.org/t/issue-in-ellipse-collision/29923)

<div class="topic-metadata">

**Author:** [@helloscoopz](https://discourse.processing.org/u/helloscoopz)\
**Replies:** 6\
**Last updated:** [May 6, 2021, 9:28pm UTC](https://discourse.processing.org/t/issue-in-ellipse-collision/29923 "2021-05-06T21:28:32Z")

</div>

CowDemo.pde ArrayList\<Cow\> particles; void setup() { frameRate(30); //size(1000, 800); size(300, 300); particles = new ArrayList\<Cow\>(); for (int i = 0; i \<= 1; i++) { particles.add(new Cow()); } } voi…

---

## [Hired work for - 10K programmatically generated images](https://discourse.processing.org/t/hired-work-for-10k-programmatically-generated-images/29903)

<div class="topic-metadata">

**Author:** [@MasterBuZ](https://discourse.processing.org/u/MasterBuZ)\
**Replies:** 21\
**Last updated:** [May 6, 2021, 4:10pm UTC](https://discourse.processing.org/t/hired-work-for-10k-programmatically-generated-images/29903 "2021-05-06T16:10:19Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi Everyone, I’m not an IT guys so I hope what I’m trying to explain makes sense. I’m looking to generate 10K images from 170 assets to create …

---

## [Multiple Windows, closing and interactions](https://discourse.processing.org/t/multiple-windows-closing-and-interactions/25693)

<div class="topic-metadata">

**Author:** [@MiguelSanches](https://discourse.processing.org/u/MiguelSanches)\
**Replies:** 1\
**Last updated:** [May 6, 2021, 1:25pm UTC](https://discourse.processing.org/t/multiple-windows-closing-and-interactions/25693 "2021-05-06T13:25:12Z")

</div>

Hi, For the last days, I have been playing with PApplet’s and creating multiple windows. After some long research I found this post on the forum (https://discourse.processing.org/t/closing-a-second-window/381/10) Now,…

---

## [Rotating a 2D PImage within a 3D P3D environment?](https://discourse.processing.org/t/rotating-a-2d-pimage-within-a-3d-p3d-environment/29874)

<div class="topic-metadata">

**Author:** [@Chubbulus](https://discourse.processing.org/u/Chubbulus)\
**Replies:** 13\
**Last updated:** [May 6, 2021, 1:05pm UTC](https://discourse.processing.org/t/rotating-a-2d-pimage-within-a-3d-p3d-environment/29874 "2021-05-06T13:05:28Z")

</div>

Hi. I’m wondering how I could get the blue square shown floating within the image to instead lay horrizontally across the center of the skybox sphere rather than vertically as it is now. Any help?

---

## [Skia Graphics as background](https://discourse.processing.org/t/skia-graphics-as-background/29846)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 4\
**Last updated:** [May 6, 2021, 11:03am UTC](https://discourse.processing.org/t/skia-graphics-as-background/29846 "2021-05-06T11:03:35Z")

</div>

Hi, I’m trying to use skiaGraphics on linux as background. See this post for more explanation on skia : skia Discussion In my code, I must choose : even skia works and PGraphics not or vice versa. import micycle.proce…

---

## [Draw a circle segment](https://discourse.processing.org/t/draw-a-circle-segment/29900)

<div class="topic-metadata">

**Author:** [@SaftigMelo](https://discourse.processing.org/u/SaftigMelo)\
**Replies:** 4\
**Last updated:** [May 6, 2021, 9:55am UTC](https://discourse.processing.org/t/draw-a-circle-segment/29900 "2021-05-06T09:55:43Z")

</div>

Hello, I am currently trying to draw a sailboat with Processing in Java. I'm failing on the bottom part right now. I was thinking that I can use a circle segment for it. I wanted to use the arc() method for this only…

---

## [Can We Do This Together? (Two robots in a bar)](https://discourse.processing.org/t/can-we-do-this-together-two-robots-in-a-bar/29852)

<div class="topic-metadata">

**Author:** [@rst96](https://discourse.processing.org/u/rst96)\
**Replies:** 4\
**Last updated:** [May 5, 2021, 9:34pm UTC](https://discourse.processing.org/t/can-we-do-this-together-two-robots-in-a-bar/29852 "2021-05-05T21:34:42Z")

</div>

I’m newbie on processing 3. I decided create a scene with experienced people (so you). Can we do this task together step-by-step? If you help me, I will glad. In 3D animation. Two guys drink coffee 1 table, 2 chairs, 2…

---

## [AudioIn only returns noise (Windows 10)](https://discourse.processing.org/t/audioin-only-returns-noise-windows-10/29892)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 6\
**Last updated:** [May 5, 2021, 7:37pm UTC](https://discourse.processing.org/t/audioin-only-returns-noise-windows-10/29892 "2021-05-05T19:37:04Z")

</div>

I wanted to try out the FFT class in processing. The example code did not work, as it wasn’t showing any result. A slight variation showed that the AudioIn did in fact get Information also I was checking the amplitude.…

---

## [Map texture onto PATH shape](https://discourse.processing.org/t/map-texture-onto-path-shape/29891)

<div class="topic-metadata">

**Author:** [@Frinkel](https://discourse.processing.org/u/Frinkel)\
**Replies:** 1\
**Last updated:** [May 5, 2021, 4:17pm UTC](https://discourse.processing.org/t/map-texture-onto-path-shape/29891 "2021-05-05T16:17:58Z")

</div>

Hello, I have a shape, which has a texture applied to it, but I would like the shape to be of type PATH, since this will allow the use of the contains(x,y) method. The problem is, if I change the shape type to PATH, no …

---

## [Some help with rendering a 2D onject and a 3D object at the same time in P3D?](https://discourse.processing.org/t/some-help-with-rendering-a-2d-onject-and-a-3d-object-at-the-same-time-in-p3d/29880)

<div class="topic-metadata">

**Author:** [@Chubbulus](https://discourse.processing.org/u/Chubbulus)\
**Replies:** 3\
**Last updated:** [May 5, 2021, 2:48pm UTC](https://discourse.processing.org/t/some-help-with-rendering-a-2d-onject-and-a-3d-object-at-the-same-time-in-p3d/29880 "2021-05-05T14:48:47Z")

</div>

Hi. So I have a scene rendered, but I can’t seem to have the sea and the arwing ship model rendered at the same time? The arwing model (on the right) is a 3D .obj model exported from Blender. The sea is a 2D PImage (on …

---

## [Map image onto shape](https://discourse.processing.org/t/map-image-onto-shape/29879)

<div class="topic-metadata">

**Author:** [@Frinkel](https://discourse.processing.org/u/Frinkel)\
**Replies:** 2\
**Last updated:** [May 5, 2021, 1:15pm UTC](https://discourse.processing.org/t/map-image-onto-shape/29879 "2021-05-05T13:15:46Z")

</div>

Hi I’m working with the processing library for Java, and are having some issues giving my shapes a texture, right now, the texture isn’t showing. I hope some of you guys might have an idea, of what I’m doing wrong. IDE …

---

## [How can I implement voice recognition in JAVA mode?](https://discourse.processing.org/t/how-can-i-implement-voice-recognition-in-java-mode/29713)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 19\
**Last updated:** [May 5, 2021, 9:43am UTC](https://discourse.processing.org/t/how-can-i-implement-voice-recognition-in-java-mode/29713 "2021-05-05T09:43:24Z")

</div>

please format code with \</\> button \* homework policy \* asking questions How can I implement voice recognition in JAVA mode? import com.getflourish.stt.\*; import ddf.minim.\*; import javax.sound.sampled.\*; STT …

---

## [Building a tower out of squares in Processing](https://discourse.processing.org/t/building-a-tower-out-of-squares-in-processing/29863)

<div class="topic-metadata">

**Author:** [@jakob.timo](https://discourse.processing.org/u/jakob.timo)\
**Replies:** 9\
**Last updated:** [May 5, 2021, 2:18am UTC](https://discourse.processing.org/t/building-a-tower-out-of-squares-in-processing/29863 "2021-05-05T02:18:50Z")

</div>

Hello there! I need some help. I want to build a tower made out of squares. The should be made out of 10 squares and they should alternate between red and blue sqares. I have no plan where I even should start. Already…

---

## [Bars:Beats:Sixteenths](https://discourse.processing.org/t/barssixteenths/29821)

<div class="topic-metadata">

**Author:** [@UnderratedGuitarGUY](https://discourse.processing.org/u/UnderratedGuitarGUY)\
**Replies:** 4\
**Last updated:** [May 4, 2021, 11:16pm UTC](https://discourse.processing.org/t/barssixteenths/29821 "2021-05-04T23:16:45Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hey, I’ve been working through a javascript beginners guide recently and I was wondering whether anyone could help me out with two conversion qu…

---

## [Nodes System coding in Processing](https://discourse.processing.org/t/nodes-system-coding-in-processing/29736)

<div class="topic-metadata">

**Author:** [@PokeAvi](https://discourse.processing.org/u/PokeAvi)\
**Replies:** 5\
**Last updated:** [May 4, 2021, 11:05pm UTC](https://discourse.processing.org/t/nodes-system-coding-in-processing/29736 "2021-05-04T23:05:41Z")

</div>

Hello world! I am developing a school project that asks me to implement a node system that can be used in the production of design objects. It has to be a functional application in some field of design (product, archite…

---

## [Adding a border to the window in a P3D environment?](https://discourse.processing.org/t/adding-a-border-to-the-window-in-a-p3d-environment/29853)

<div class="topic-metadata">

**Author:** [@Chubbulus](https://discourse.processing.org/u/Chubbulus)\
**Replies:** 2\
**Last updated:** [May 4, 2021, 6:53pm UTC](https://discourse.processing.org/t/adding-a-border-to-the-window-in-a-p3d-environment/29853 "2021-05-04T18:53:19Z")

</div>

Hi. How would I apply a border to the window when I have a P3D environment? What I mean is that I want the object that is floating below my ship model to instead be locked to the edges of the screen.as a border. I’m us…

---

## [loadShape() Displaying my .obj file flat rather than as a 3D model? Any help?](https://discourse.processing.org/t/loadshape-displaying-my-obj-file-flat-rather-than-as-a-3d-model-any-help/29824)

<div class="topic-metadata">

**Author:** [@Chubbulus](https://discourse.processing.org/u/Chubbulus)\
**Replies:** 12\
**Last updated:** [May 4, 2021, 12:25pm UTC](https://discourse.processing.org/t/loadshape-displaying-my-obj-file-flat-rather-than-as-a-3d-model-any-help/29824 "2021-05-04T12:25:58Z")

</div>

Hi. I’m new to Processing, having to use it for some University work. My current coursework required me to render in a 3D Model with Processing, but when I use loadShape() and add shape(modelname, integer, integer, integ…

---

## ["Processing won't open"](https://discourse.processing.org/t/processing-wont-open/29808)

<div class="topic-metadata">

**Author:** [@yoonewb](https://discourse.processing.org/u/yoonewb)\
**Replies:** 3\
**Last updated:** [May 4, 2021, 10:20am UTC](https://discourse.processing.org/t/processing-wont-open/29808 "2021-05-04T10:20:45Z")

</div>

I am not good with computers so bare with me please. When I open processing, it shows the starting window and it’s gone in half a second. I’ve tried reinstalling it, rebooting my PC, reinstalling java, tried different …

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

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