# Processing

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

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

**Page:** 179

---

## [Tint Speed Adjustment](https://discourse.processing.org/t/tint-speed-adjustment/24446)

<div class="topic-metadata">

**Author:** [@stellakramer](https://discourse.processing.org/u/stellakramer)\
**Replies:** 4\
**Last updated:** [October 9, 2020, 10:38am UTC](https://discourse.processing.org/t/tint-speed-adjustment/24446 "2020-10-09T10:38:40Z")

</div>

Helloooo I’m back with another question😊. This time it’s about the tint function. I like being able to set the tint to random but it moves very fast, is there any way to slow down the tint speed? I think I heard somewh…

---

## [macOS question pixels\[loc\] issue](https://discourse.processing.org/t/macos-question-pixels-loc-issue/24411)

<div class="topic-metadata">

**Author:** [@8SU](https://discourse.processing.org/u/8SU)\
**Replies:** 2\
**Last updated:** [October 9, 2020, 10:39am UTC](https://discourse.processing.org/t/macos-question-pixels-loc-issue/24411 "2020-10-09T10:39:06Z")

</div>

please format code with \</\> button \* homework policy \* asking questions i used macOS and processing 3 ver(3.5.4) before i have video library issue so fix that link but i have one more issue void draw() { //ima…

---

## [pv.random3D(target, parent);](https://discourse.processing.org/t/pv-random3d-target-parent/24442)

<div class="topic-metadata">

**Author:** [@J\_Silva](https://discourse.processing.org/u/J_Silva)\
**Replies:** 10\
**Last updated:** [October 9, 2020, 4:04am UTC](https://discourse.processing.org/t/pv-random3d-target-parent/24442 "2020-10-09T04:04:09Z")

</div>

Hi. Could someone explain when pv.random3D(target, parent); is used? like PVector pv = PVector.random3D(this); What are target and parent referring to?

---

## [How to check for similar number in array and bring out a error sign](https://discourse.processing.org/t/how-to-check-for-similar-number-in-array-and-bring-out-a-error-sign/24454)

<div class="topic-metadata">

**Author:** [@newtothis](https://discourse.processing.org/u/newtothis)\
**Replies:** 6\
**Last updated:** [October 8, 2020, 10:59pm UTC](https://discourse.processing.org/t/how-to-check-for-similar-number-in-array-and-bring-out-a-error-sign/24454 "2020-10-08T22:59:10Z")

</div>

please format code with \</\> button \* homework policy \* asking questions for(int iIndex=0;iIndex\<6; iIndex++) { fill(67, 214, 250); text(iArray\[iIn…

---

## [How to determine ratio of growth of figure based on distance?](https://discourse.processing.org/t/how-to-determine-ratio-of-growth-of-figure-based-on-distance/24441)

<div class="topic-metadata">

**Author:** [@silphonix](https://discourse.processing.org/u/silphonix)\
**Replies:** 7\
**Last updated:** [October 8, 2020, 5:26pm UTC](https://discourse.processing.org/t/how-to-determine-ratio-of-growth-of-figure-based-on-distance/24441 "2020-10-08T17:26:47Z")

</div>

Hi, I’m new to Processing. I wanted to know the best/simpliest method to achive the following: I need to move a square from right to left and make it scale while moving. The square must be 2x2 at the beggining, and en…

---

## [Advice for Assembly Language](https://discourse.processing.org/t/advice-for-assembly-language/24097)

<div class="topic-metadata">

**Author:** [@adisharma](https://discourse.processing.org/u/adisharma)\
**Replies:** 2\
**Last updated:** [October 8, 2020, 3:09pm UTC](https://discourse.processing.org/t/advice-for-assembly-language/24097 "2020-10-08T15:09:28Z")

</div>

Hello All, Can anyone suggest me which assembly language tutorial is best? I am working on some projects which need assembly programming, So I want to learn it. Does anyone know best tutorial?

---

## [Indexing for (datatype element : array) loops](https://discourse.processing.org/t/indexing-for-datatype-element-array-loops/24406)

<div class="topic-metadata">

**Author:** [@RFullum](https://discourse.processing.org/u/RFullum)\
**Replies:** 5\
**Last updated:** [October 8, 2020, 2:34pm UTC](https://discourse.processing.org/t/indexing-for-datatype-element-array-loops/24406 "2020-10-08T14:34:43Z")

</div>

I’ve been trying to figure out if there’s a simple way to extract the index of the iteration through a for-loop when using the for(elements in an array) style iteration. It’s simple enough using the for(init; test; upda…

---

## [How to save a previous mouse position](https://discourse.processing.org/t/how-to-save-a-previous-mouse-position/24434)

<div class="topic-metadata">

**Author:** [@moms\_spaghetti](https://discourse.processing.org/u/moms_spaghetti)\
**Replies:** 1\
**Last updated:** [October 8, 2020, 12:58pm UTC](https://discourse.processing.org/t/how-to-save-a-previous-mouse-position/24434 "2020-10-08T12:58:43Z")

</div>

Hello I am having a problem with trying to connect dots ,everytime I click on a position with my mouse I create a dot and what is supposed to happen is that the dots get connected with a line. For this I need to save th…

---

## [Quad() gets drawn twice](https://discourse.processing.org/t/quad-gets-drawn-twice/24382)

<div class="topic-metadata">

**Author:** [@theqxy](https://discourse.processing.org/u/theqxy)\
**Replies:** 13\
**Last updated:** [October 8, 2020, 11:58am UTC](https://discourse.processing.org/t/quad-gets-drawn-twice/24382 "2020-10-08T11:58:16Z")

</div>

Hello, everyone. Lately I’ve been casually working through Daniel Shiffman’s book Learning Processing, to better familiarize myself with Processing. I was working on exercise 14-5 in the book: “Create a three-dimension…

---

## [Better Fast Moving Object Collision Detection](https://discourse.processing.org/t/better-fast-moving-object-collision-detection/23150)

<div class="topic-metadata">

**Author:** [@chuchu](https://discourse.processing.org/u/chuchu)\
**Replies:** 1\
**Last updated:** [October 8, 2020, 9:36am UTC](https://discourse.processing.org/t/better-fast-moving-object-collision-detection/23150 "2020-10-08T09:36:58Z")

</div>

Following on from this post: https://discourse.processing.org/t/double-hit-on-object-collision-and-repeat-trigger/22970 I’m now focusing on the collision detection algorithm used in my program, rather than the simple de…

---

## [Is there a way to extract samples from an audio file?](https://discourse.processing.org/t/is-there-a-way-to-extract-samples-from-an-audio-file/24423)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 0\
**Last updated:** [October 8, 2020, 3:42am UTC](https://discourse.processing.org/t/is-there-a-way-to-extract-samples-from-an-audio-file/24423 "2020-10-08T03:42:00Z")

</div>

Is there a way to extract every individual sample from an audio file for processing? I want to do things with samples from audio files, but I’m not sure how to do that. It doesn’t matter what format of audio file, alth…

---

## [Multiple windows, same thread or seperate?](https://discourse.processing.org/t/multiple-windows-same-thread-or-seperate/24375)

<div class="topic-metadata">

**Author:** [@Tomfoolery](https://discourse.processing.org/u/Tomfoolery)\
**Replies:** 2\
**Last updated:** [October 8, 2020, 12:05am UTC](https://discourse.processing.org/t/multiple-windows-same-thread-or-seperate/24375 "2020-10-08T00:05:06Z")

</div>

So according to this post here: Every window you run with runSketch has its own animation thread. To test this out, I had a single window draw 100 ellipses per frame at 60 frames per second, then I had it draw 400 …

---

## [A question about coding (bar chart race)](https://discourse.processing.org/t/a-question-about-coding-bar-chart-race/24319)

<div class="topic-metadata">

**Author:** [@DubTheGamer](https://discourse.processing.org/u/DubTheGamer)\
**Replies:** 16\
**Last updated:** [October 6, 2020, 7:28pm UTC](https://discourse.processing.org/t/a-question-about-coding-bar-chart-race/24319 "2020-10-06T19:28:16Z")

</div>

So I’m new to Processing 3, and would love to know how to make a bar chart race similar to this one: https://www.youtube.com/watch?v=ZkcaANwCrMQ

---

## [Game collision dection problem](https://discourse.processing.org/t/game-collision-dection-problem/24415)

<div class="topic-metadata">

**Author:** [@lupos](https://discourse.processing.org/u/lupos)\
**Replies:** 0\
**Last updated:** [October 7, 2020, 5:54pm UTC](https://discourse.processing.org/t/game-collision-dection-problem/24415 "2020-10-07T17:54:25Z")

</div>

hi this is for a university project. on line 223 I am having trouble making so the player doesn’t go over the water. I cant figure out a way for the player to not move over the water without the player getting stuck cou…

---

## [CodeTrain Circlepacking with random sticky colors](https://discourse.processing.org/t/codetrain-circlepacking-with-random-sticky-colors/24390)

<div class="topic-metadata">

**Author:** [@keddefar](https://discourse.processing.org/u/keddefar)\
**Replies:** 2\
**Last updated:** [October 7, 2020, 11:26am UTC](https://discourse.processing.org/t/codetrain-circlepacking-with-random-sticky-colors/24390 "2020-10-07T11:26:46Z")

</div>

Hi there - very new to Processing, so be gentle :slight\_smile: Starting with some coding train tutorials and modding a bit along the way, below code is an example of that. I want to fill the circles with colors from a …

---

## [Button clicked when not visible](https://discourse.processing.org/t/button-clicked-when-not-visible/23887)

<div class="topic-metadata">

**Author:** [@Ladan](https://discourse.processing.org/u/Ladan)\
**Replies:** 3\
**Last updated:** [October 7, 2020, 11:20am UTC](https://discourse.processing.org/t/button-clicked-when-not-visible/23887 "2020-10-07T11:20:54Z")

</div>

When clicking the Quiz button at a point, where the “richtig” or the “falsch” button would be, like on the left of the i, im not shown the first question, but the result screen, so the question is answered with the click…

---

## [Mouse moved() function](https://discourse.processing.org/t/mouse-moved-function/24373)

<div class="topic-metadata">

**Author:** [@thughes](https://discourse.processing.org/u/thughes)\
**Replies:** 7\
**Last updated:** [October 7, 2020, 10:46am UTC](https://discourse.processing.org/t/mouse-moved-function/24373 "2020-10-07T10:46:16Z")

</div>

This is what I am trying to re-create. I have this so far…i have the 1st square, but i don’t know how to get the last 3. void setup() {size (400, 400); background (0);} int value = 0; void draw() { fill(255, 255,…

---

## [XYScope and FFT sketch - Assign audio input?](https://discourse.processing.org/t/xyscope-and-fft-sketch-assign-audio-input/24400)

<div class="topic-metadata">

**Author:** [@thagreatbelow](https://discourse.processing.org/u/thagreatbelow)\
**Replies:** 3\
**Last updated:** [October 7, 2020, 9:13am UTC](https://discourse.processing.org/t/xyscope-and-fft-sketch-assign-audio-input/24400 "2020-10-07T09:13:46Z")

</div>

Hello all, I’m trying to figure out how to get this particular sketch to function properly, and I assume I’m doing something wrong as that’s generally the case. The code can be found here https://forum.processing.org/two…

---

## [Convolution Solution? Changing size and shape](https://discourse.processing.org/t/convolution-solution-changing-size-and-shape/24393)

<div class="topic-metadata">

**Author:** [@stellakramer](https://discourse.processing.org/u/stellakramer)\
**Replies:** 1\
**Last updated:** [October 7, 2020, 8:54am UTC](https://discourse.processing.org/t/convolution-solution-changing-size-and-shape/24393 "2020-10-07T08:54:16Z")

</div>

Hellooo, I have a question. I’m very much a beginner to Processing and I’m kind of struggling to figure everything out. For an art installation I’m making right now I’m using processing to hopefully make a visual that c…

---

## [A question about my code (video)](https://discourse.processing.org/t/a-question-about-my-code-video/24329)

<div class="topic-metadata">

**Author:** [@8SU](https://discourse.processing.org/u/8SU)\
**Replies:** 4\
**Last updated:** [October 7, 2020, 6:19am UTC](https://discourse.processing.org/t/a-question-about-my-code-video/24329 "2020-10-07T06:19:57Z")

</div>

So I’m new to Processing 3, and i can’t understand this issue import processing.video.\*; Capture cam; Capture G; Capture B; Capture R; int capW = 320; int capH = 240; int nDelayFrames = 20; // about 3 seconds (3s…

---

## [Problème d'animation](https://discourse.processing.org/t/probleme-danimation/24372)

<div class="topic-metadata">

**Author:** [@nina](https://discourse.processing.org/u/nina)\
**Replies:** 5\
**Last updated:** [October 6, 2020, 4:20pm UTC](https://discourse.processing.org/t/probleme-danimation/24372 "2020-10-06T16:20:36Z")

</div>

Bonsoir , j’ai un problème avec mon programme j’ai fait une maison mais, je n’arrive pas à intégrer la pluie (comme animation). Ce sont les codes mit en commentaire dans mon programme . Pouvez-vous m’aidez à corriger …

---

## [Web Scraping code](https://discourse.processing.org/t/web-scraping-code/12002)

<div class="topic-metadata">

**Author:** [@zara2355](https://discourse.processing.org/u/zara2355)\
**Replies:** 17\
**Last updated:** [October 6, 2020, 9:08am UTC](https://discourse.processing.org/t/web-scraping-code/12002 "2020-10-06T09:08:08Z")

</div>

hello all, Im super new to Processing and am trying to figure out how to write a sketch that can grab numeric data from a website, specifically wind-speed from the national weather service Link: (https://forecast.weathe…

---

## [Drawing a buffer to the canvas, while maintaining vectors (instead of rasterizing the buffer)?](https://discourse.processing.org/t/drawing-a-buffer-to-the-canvas-while-maintaining-vectors-instead-of-rasterizing-the-buffer/24343)

<div class="topic-metadata">

**Author:** [@pablohotsauce](https://discourse.processing.org/u/pablohotsauce)\
**Replies:** 10\
**Last updated:** [October 6, 2020, 7:04am UTC](https://discourse.processing.org/t/drawing-a-buffer-to-the-canvas-while-maintaining-vectors-instead-of-rasterizing-the-buffer/24343 "2020-10-06T07:04:05Z")

</div>

Is there a way to 1) make it so a buffer stores vector shape data, and also 2) draw that buffer to the screen later while maintaining vector shape data, instead of rasterizing the contents of the buffer? Currently, if I…

---

## [Help with refreshing shaders](https://discourse.processing.org/t/help-with-refreshing-shaders/24374)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [October 6, 2020, 4:01am UTC](https://discourse.processing.org/t/help-with-refreshing-shaders/24374 "2020-10-06T04:01:54Z")

</div>

I am looking for a sobel shader which will allow me to change the multiplier. i found the following and have used the following shader provided however the shader doesn’t refresh. Now the default edge detection…

---

## [Why am I receiving NaN? What's wrong?](https://discourse.processing.org/t/why-am-i-receiving-nan-whats-wrong/24359)

<div class="topic-metadata">

**Author:** [@CrossAlex21](https://discourse.processing.org/u/CrossAlex21)\
**Replies:** 5\
**Last updated:** [October 6, 2020, 3:26am UTC](https://discourse.processing.org/t/why-am-i-receiving-nan-whats-wrong/24359 "2020-10-06T03:26:25Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello! I am very new to processing js and I am in a “special” group in my class (it means I have done programming). We were making a calculator…

---

## [\<Code to integrate profile ICC for PGraphicsPDF/\>](https://discourse.processing.org/t/code-to-integrate-profile-icc-for-pgraphicspdf/24370)

<div class="topic-metadata">

**Author:** [@Claude-CLd1](https://discourse.processing.org/u/Claude-CLd1)\
**Replies:** 0\
**Last updated:** [October 5, 2020, 9:17pm UTC](https://discourse.processing.org/t/code-to-integrate-profile-icc-for-pgraphicspdf/24370 "2020-10-05T21:17:38Z")

</div>

Hello, do you know how to include a profil ICC into the PDF file create with PGraphicsPDF. Thank you for your help

---

## [How to write titles and legends in 2D fashion when working in P3D?](https://discourse.processing.org/t/how-to-write-titles-and-legends-in-2d-fashion-when-working-in-p3d/19610)

<div class="topic-metadata">

**Author:** [@Samizen](https://discourse.processing.org/u/Samizen)\
**Replies:** 4\
**Last updated:** [October 5, 2020, 6:06pm UTC](https://discourse.processing.org/t/how-to-write-titles-and-legends-in-2d-fashion-when-working-in-p3d/19610 "2020-10-05T18:06:31Z")

</div>

I have completed my sketch in working in P3D mode apart from titles and legends. How do I write these texts normally like 2D when working from this mode. I’ve introduced a camera in the sketch to enable panning and zoomi…

---

## [Using Pixels\[\] Array over Points • trying to move Pixels(XY) off screen like Points](https://discourse.processing.org/t/using-pixels-array-over-points-trying-to-move-pixels-xy-off-screen-like-points/24309)

<div class="topic-metadata">

**Author:** [@Gus\_Fermin](https://discourse.processing.org/u/Gus_Fermin)\
**Replies:** 1\
**Last updated:** [October 5, 2020, 10:28am UTC](https://discourse.processing.org/t/using-pixels-array-over-points-trying-to-move-pixels-xy-off-screen-like-points/24309 "2020-10-05T10:28:16Z")

</div>

Hello there, A beginner here :slight\_smile: trying desperately to understand the pixels array but feeling a bit lost / confused still. I have done a sketch using many point(), and was able to do what seems like a meltin…

---

## [Is masking available for vector shapes, outside of PImage.mask()?](https://discourse.processing.org/t/is-masking-available-for-vector-shapes-outside-of-pimage-mask/24320)

<div class="topic-metadata">

**Author:** [@pablohotsauce](https://discourse.processing.org/u/pablohotsauce)\
**Replies:** 4\
**Last updated:** [October 5, 2020, 2:45pm UTC](https://discourse.processing.org/t/is-masking-available-for-vector-shapes-outside-of-pimage-mask/24320 "2020-10-05T14:45:20Z")

</div>

Can I mask a vector shape using another vector shape, and have the end result be a vector? (e.g., for exporting to vector PDF / SVG) Or is masking available only for pixels, meaning both that the mask itself needs to be …

---

## [Random class from book of nature of code](https://discourse.processing.org/t/random-class-from-book-of-nature-of-code/24354)

<div class="topic-metadata">

**Author:** [@sangshen](https://discourse.processing.org/u/sangshen)\
**Replies:** 2\
**Last updated:** [October 5, 2020, 12:41pm UTC](https://discourse.processing.org/t/random-class-from-book-of-nature-of-code/24354 "2020-10-05T12:41:17Z")

</div>

please format code with \</\> button \* homework policy \* asking questions there is a Random class showed on the book , but when I wrote code like this , the console showed me it cannot find a class named Random .

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

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