# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=236

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

**Page:** 237

---

## [Perhaps another way to shuffle lerped colors in an array?](https://discourse.processing.org/t/perhaps-another-way-to-shuffle-lerped-colors-in-an-array/17597)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 38\
**Last updated:** [February 15, 2020, 11:40am UTC](https://discourse.processing.org/t/perhaps-another-way-to-shuffle-lerped-colors-in-an-array/17597 "2020-02-15T11:40:59Z")

</div>

Watching a D Shiffman tutorial on probability prompted me to try this. I want to shuffle a colorList array of lerped colors. Search turned up to use IntList and shuffle. But in setup for loop I thought to replace k++; …

---

## [macOS processing unable to start "we're off on the wrong foot"-Solved](https://discourse.processing.org/t/macos-processing-unable-to-start-were-off-on-the-wrong-foot-solved/16464)

<div class="topic-metadata">

**Author:** [@niuuin](https://discourse.processing.org/u/niuuin)\
**Replies:** 5\
**Last updated:** [February 15, 2020, 5:49am UTC](https://discourse.processing.org/t/macos-processing-unable-to-start-were-off-on-the-wrong-foot-solved/16464 "2020-02-15T05:49:09Z")

</div>

I have been using it normally before, but suddenly something went wrong yesterday. I checked a lot of previous topics, but still can’t solve this problem.I don’t understand deeper principles, but I haven’t found a soluti…

---

## [oscP5 - vectors and length of message](https://discourse.processing.org/t/oscp5-vectors-and-length-of-message/17791)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 1\
**Last updated:** [February 15, 2020, 5:46am UTC](https://discourse.processing.org/t/oscp5-vectors-and-length-of-message/17791 "2020-02-15T05:46:02Z")

</div>

Hi Two quick questions about the oscP5 library: Am I correct that you cannot send PVectors via OSC? When receiving an array of ints of a varying length via OSC, how do I parse it correctly, in situations where I d…

---

## [Help with crash detection](https://discourse.processing.org/t/help-with-crash-detection/17595)

<div class="topic-metadata">

**Author:** [@zoobs](https://discourse.processing.org/u/zoobs)\
**Replies:** 2\
**Last updated:** [February 15, 2020, 5:12am UTC](https://discourse.processing.org/t/help-with-crash-detection/17595 "2020-02-15T05:12:25Z")

</div>

So i have a game i have a defender and aliens who are moving towards the defender and the defender is the user who avoids the alien. I need to add a collision detection so when the alien collides with the defender the ga…

---

## [Where to activate "intelligent" autocompletion inside preferences.txt?](https://discourse.processing.org/t/where-to-activate-intelligent-autocompletion-inside-preferences-txt/17830)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.processing.org/u/animanoir)\
**Replies:** 3\
**Last updated:** [February 14, 2020, 11:55pm UTC](https://discourse.processing.org/t/where-to-activate-intelligent-autocompletion-inside-preferences-txt/17830 "2020-02-14T23:55:45Z")

</div>

I remember there is a setting inside preferences.txt that enables some kind of “smart” autocomplete. Which one was?

---

## [Processing 3.5.4: IDE font style is bold now?](https://discourse.processing.org/t/processing-3-5-4-ide-font-style-is-bold-now/17467)

<div class="topic-metadata">

**Author:** [@rapatski](https://discourse.processing.org/u/rapatski)\
**Replies:** 3\
**Last updated:** [February 14, 2020, 9:51pm UTC](https://discourse.processing.org/t/processing-3-5-4-ide-font-style-is-bold-now/17467 "2020-02-14T21:51:21Z")

</div>

Hi all, I think I’m going crazy. Searched the forum but can’t see anyone else mention this: since I downloaded 3.5.4 the IDE font has gone bold in all instances. I am aware I am a little sensitive to not-so-important is…

---

## [Low Res Images get Blured when Scaled Up](https://discourse.processing.org/t/low-res-images-get-blured-when-scaled-up/17764)

<div class="topic-metadata">

**Author:** [@KevinWho](https://discourse.processing.org/u/KevinWho)\
**Replies:** 2\
**Last updated:** [February 13, 2020, 5:17am UTC](https://discourse.processing.org/t/low-res-images-get-blured-when-scaled-up/17764 "2020-02-13T05:17:43Z")

</div>

This happens when I try to use PImage.resize(w,h); The closest thing to working is image(PImage, x,y,w,h);. I found that adding the width and height parameters to this would slow down the framerate significantly. I wa…

---

## [Sketch running slow](https://discourse.processing.org/t/sketch-running-slow/17778)

<div class="topic-metadata">

**Author:** [@irmantas](https://discourse.processing.org/u/irmantas)\
**Replies:** 14\
**Last updated:** [February 14, 2020, 2:49pm UTC](https://discourse.processing.org/t/sketch-running-slow/17778 "2020-02-14T14:49:51Z")

</div>

I have a sketch which was running fine on win10 pc. But I upgraded pc and now same sketch is running much slower. Any ideas what may be wrong ?

---

## [Adding Sound Library](https://discourse.processing.org/t/adding-sound-library/17742)

<div class="topic-metadata">

**Author:** [@whittemoreec](https://discourse.processing.org/u/whittemoreec)\
**Replies:** 7\
**Last updated:** [February 14, 2020, 2:44pm UTC](https://discourse.processing.org/t/adding-sound-library/17742 "2020-02-14T14:44:31Z")

</div>

I need to preface this by saying that I don’t have a lot of working knowledge of the program. I am a Tech Director at a school and I was asked to add this to a handful of student laptops so they could use it for a class.…

---

## [Processing-java on Ubuntu Linux - Out of Memory issue](https://discourse.processing.org/t/processing-java-on-ubuntu-linux-out-of-memory-issue/16892)

<div class="topic-metadata">

**Author:** [@dandotdot](https://discourse.processing.org/u/dandotdot)\
**Replies:** 4\
**Last updated:** [February 14, 2020, 8:06am UTC](https://discourse.processing.org/t/processing-java-on-ubuntu-linux-out-of-memory-issue/16892 "2020-02-14T08:06:34Z")

</div>

Hey there, I have some data-vis sketches running via processing-java on an Ubuntu AWS instance that are throwing Out Of Memory errors, or more often, simply hanging and maxing-out the server CPU when they run. Here’s a…

---

## [Keypressed(): Can this even be done?](https://discourse.processing.org/t/keypressed-can-this-even-be-done/17808)

<div class="topic-metadata">

**Author:** [@rorange](https://discourse.processing.org/u/rorange)\
**Replies:** 3\
**Last updated:** [February 14, 2020, 2:57am UTC](https://discourse.processing.org/t/keypressed-can-this-even-be-done/17808 "2020-02-14T02:57:25Z")

</div>

Hi all, I’ve been working on a project for a few days where I’m meant to use keypressed to do a number of things. First thing I’m struggling with: “Make a keyPressed function with the following behavior: • The first …

---

## [Computer won't download processing](https://discourse.processing.org/t/computer-wont-download-processing/17758)

<div class="topic-metadata">

**Author:** [@readergirl90](https://discourse.processing.org/u/readergirl90)\
**Replies:** 3\
**Last updated:** [February 14, 2020, 12:23am UTC](https://discourse.processing.org/t/computer-wont-download-processing/17758 "2020-02-14T00:23:53Z")

</div>

I have a Dell that runs 64-bit widows, and for some reason it refuses to download the file on the processing website. I tried some older versions as well, but that wasn’t the issue. It will download about half the progra…

---

## [Having trouble using kinect with processing on windows](https://discourse.processing.org/t/having-trouble-using-kinect-with-processing-on-windows/15337)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 2\
**Last updated:** [February 13, 2020, 2:40pm UTC](https://discourse.processing.org/t/having-trouble-using-kinect-with-processing-on-windows/15337 "2020-02-13T14:40:42Z")

</div>

any suggestion to use kinect with processing3 in windows 10? as I’ve been searching I’m becoming more disappointed that there is no easy solution to use openkinect library in windows. should I give up? What alternative…

---

## [Line between balls](https://discourse.processing.org/t/line-between-balls/17606)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 5\
**Last updated:** [February 13, 2020, 2:38pm UTC](https://discourse.processing.org/t/line-between-balls/17606 "2020-02-13T14:38:31Z")

</div>

Hi I remember I watched a tutorial of coding train channel a year ago that implement a line between balls in a particular distance as above: class Ball { PVector org, location; float a = 10; float theta, radius, …

---

## [Rectangle Collision in ArrayList](https://discourse.processing.org/t/rectangle-collision-in-arraylist/17770)

<div class="topic-metadata">

**Author:** [@StadiumDelirium](https://discourse.processing.org/u/StadiumDelirium)\
**Replies:** 4\
**Last updated:** [February 13, 2020, 12:15pm UTC](https://discourse.processing.org/t/rectangle-collision-in-arraylist/17770 "2020-02-13T12:15:13Z")

</div>

Hi everybody, this is my first post. I am new to Processing and therefor having some trouble with a game that I am supposed to code in college. Also, please excuse my bad English, I am from Germany :wink: In my coding…

---

## [P2D Hangs if no internet connection](https://discourse.processing.org/t/p2d-hangs-if-no-internet-connection/17633)

<div class="topic-metadata">

**Author:** [@Spikey8D](https://discourse.processing.org/u/Spikey8D)\
**Replies:** 4\
**Last updated:** [February 13, 2020, 11:47am UTC](https://discourse.processing.org/t/p2d-hangs-if-no-internet-connection/17633 "2020-02-13T11:47:14Z")

</div>

Hi, I have encountered an odd error which I narrowed down with the following minimal repro: void settings() { size(500, 500, P2D); pixelDensity(1); } This sketch works fine if the computer is connected to a network…

---

## [Input/ouput file dialog appears behind window/s](https://discourse.processing.org/t/input-ouput-file-dialog-appears-behind-window-s/17146)

<div class="topic-metadata">

**Author:** [@mala](https://discourse.processing.org/u/mala)\
**Replies:** 3\
**Last updated:** [February 13, 2020, 11:23am UTC](https://discourse.processing.org/t/input-ouput-file-dialog-appears-behind-window-s/17146 "2020-02-13T11:23:03Z")

</div>

On windows, when using selectInput() or selectOutput() the file dialog popup is always behind the main sketch/app and also any other file browser windows you may have open. From memory this problem has been around for s…

---

## [Word Prediction](https://discourse.processing.org/t/word-prediction/17776)

<div class="topic-metadata">

**Author:** [@Justin.Miller](https://discourse.processing.org/u/Justin.Miller)\
**Replies:** 1\
**Last updated:** [February 13, 2020, 12:10am UTC](https://discourse.processing.org/t/word-prediction/17776 "2020-02-13T00:10:44Z")

</div>

Hello, I was wandering if there was a way to suggest a function prediction feature within processing. For example, if I am calling the ellipse() function and I type ell it will predict what I am typing and fill in the w…

---

## [How to Read 2 Packets of Data at Once - MPU6050](https://discourse.processing.org/t/how-to-read-2-packets-of-data-at-once-mpu6050/5793)

<div class="topic-metadata">

**Author:** [@yodayoshi](https://discourse.processing.org/u/yodayoshi)\
**Replies:** 5\
**Last updated:** [February 13, 2020, 10:38am UTC](https://discourse.processing.org/t/how-to-read-2-packets-of-data-at-once-mpu6050/5793 "2020-02-13T10:38:43Z")

</div>

Hello, I am trying to extend the teapot demo from Jeff Rowberg to be able to show a graphical representation of 2 MPU 6050 sensors instead of just the one. I have modified the Arduino sketch to be able to take in values …

---

## [Position / rotation conversion](https://discourse.processing.org/t/position-rotation-conversion/17610)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 2\
**Last updated:** [February 13, 2020, 10:33am UTC](https://discourse.processing.org/t/position-rotation-conversion/17610 "2020-02-13T10:33:09Z")

</div>

Hello, I run motors in Processing with position data from 0 to 4096 for a revolution. I have a stepper motor in Arduino which follows its positions very well. :grinning: The problem is when the simulated motor arrives…

---

## [Extracting bits from serial stream?](https://discourse.processing.org/t/extracting-bits-from-serial-stream/17647)

<div class="topic-metadata">

**Author:** [@steve\_j](https://discourse.processing.org/u/steve_j)\
**Replies:** 8\
**Last updated:** [February 13, 2020, 12:02am UTC](https://discourse.processing.org/t/extracting-bits-from-serial-stream/17647 "2020-02-13T00:02:35Z")

</div>

Im trying to parse the serial data from a sensor but i (think?) im struggling to format the angle offset correctly, Below is the format of the packet i am receiving and relevant descriptions. my distance and start …

---

## [Pixelate Face Tracking with OpenCV](https://discourse.processing.org/t/pixelate-face-tracking-with-opencv/17780)

<div class="topic-metadata">

**Author:** [@ElwoodBlues](https://discourse.processing.org/u/ElwoodBlues)\
**Replies:** 0\
**Last updated:** [February 12, 2020, 10:16pm UTC](https://discourse.processing.org/t/pixelate-face-tracking-with-opencv/17780 "2020-02-12T22:16:32Z")

</div>

Hi, I’m trying to get my code to pixelate faces in live video. I have a face tracking sketch that works, as well as a pixelate sketch that works to pixelate the whole screen, however I am having trouble combining them so…

---

## [Lose data from serial port](https://discourse.processing.org/t/lose-data-from-serial-port/17697)

<div class="topic-metadata">

**Author:** [@lzwang26](https://discourse.processing.org/u/lzwang26)\
**Replies:** 4\
**Last updated:** [February 12, 2020, 7:41pm UTC](https://discourse.processing.org/t/lose-data-from-serial-port/17697 "2020-02-12T19:41:48Z")

</div>

I’m trying to send data from Arduino to Processing. Three data are sent by Arduino which separated by comma (like 616, 224, 1200), and is split and stored. The data can be read and printed by Arduino Serial monitor prope…

---

## [Table removeColumn(index) not working correctly?](https://discourse.processing.org/t/table-removecolumn-index-not-working-correctly/17585)

<div class="topic-metadata">

**Author:** [@plux](https://discourse.processing.org/u/plux)\
**Replies:** 3\
**Last updated:** [February 12, 2020, 6:47pm UTC](https://discourse.processing.org/t/table-removecolumn-index-not-working-correctly/17585 "2020-02-12T18:47:49Z")

</div>

Hello, as followup to this post. I’m now trying to remove some columns but I’m having strange issue. Basically this: table.removeColumn(0); table.removeColumn(1); table.removeColumn(2); will remove column…

---

## [Feedback on Button maker](https://discourse.processing.org/t/feedback-on-button-maker/17768)

<div class="topic-metadata">

**Author:** [@SWijnen](https://discourse.processing.org/u/SWijnen)\
**Replies:** 5\
**Last updated:** [February 12, 2020, 6:44pm UTC](https://discourse.processing.org/t/feedback-on-button-maker/17768 "2020-02-12T18:44:23Z")

</div>

Hello everyone, I tried to create a button class and now I am wondering what I can improve upon this code. I am also wondering how I would be able to only have the upper button working when the buttons overlap each oth…

---

## [Beginner: new pages (state)](https://discourse.processing.org/t/beginner-new-pages-state/17774)

<div class="topic-metadata">

**Author:** [@amprocessing](https://discourse.processing.org/u/amprocessing)\
**Replies:** 3\
**Last updated:** [February 12, 2020, 6:21pm UTC](https://discourse.processing.org/t/beginner-new-pages-state/17774 "2020-02-12T18:21:10Z")

</div>

HI, I am trying to figure out how to create a number of pages in my sketch. I don’t want to just reset the background. I know that you may need to use the switch case function, but I don’t understand how it works. Can so…

---

## [Zoom on clicked area then click again to zoom back out](https://discourse.processing.org/t/zoom-on-clicked-area-then-click-again-to-zoom-back-out/17675)

<div class="topic-metadata">

**Author:** [@afleetw](https://discourse.processing.org/u/afleetw)\
**Replies:** 2\
**Last updated:** [February 12, 2020, 5:45pm UTC](https://discourse.processing.org/t/zoom-on-clicked-area-then-click-again-to-zoom-back-out/17675 "2020-02-12T17:45:28Z")

</div>

I uploaded an image then created a flashlight type of light that only showcases part of the image that are hovered over. That part of the code worked but now I want to use if/else statements to zoom in on a clicked area …

---

## [How to fade in object with for loop](https://discourse.processing.org/t/how-to-fade-in-object-with-for-loop/17772)

<div class="topic-metadata">

**Author:** [@fmS3lect](https://discourse.processing.org/u/fmS3lect)\
**Replies:** 3\
**Last updated:** [February 12, 2020, 5:13pm UTC](https://discourse.processing.org/t/how-to-fade-in-object-with-for-loop/17772 "2020-02-12T17:13:47Z")

</div>

HI Guys, i am relativ new to programming and I have a question. I am trying to fade in an object by using a for loop that increases the alpha value of the object. But it does not fade in, it only appears. int\[\] red =…

---

## [Creating a count function](https://discourse.processing.org/t/creating-a-count-function/17771)

<div class="topic-metadata">

**Author:** [@amprocessing](https://discourse.processing.org/u/amprocessing)\
**Replies:** 2\
**Last updated:** [February 12, 2020, 4:18pm UTC](https://discourse.processing.org/t/creating-a-count-function/17771 "2020-02-12T16:18:09Z")

</div>

Im new to processing so im still a beginner. So, I have added code below that displays a simple maze. This code allows the users to move the ball around the maze, and to collect the small dots. I want to add a funtion th…

---

## [Any help to code this example (attached)](https://discourse.processing.org/t/any-help-to-code-this-example-attached/16688)

<div class="topic-metadata">

**Author:** [@dovkev](https://discourse.processing.org/u/dovkev)\
**Replies:** 3\
**Last updated:** [February 2, 2020, 7:51pm UTC](https://discourse.processing.org/t/any-help-to-code-this-example-attached/16688 "2020-02-02T19:51:06Z")

</div>

Hey everybody, I’m learning digital tools. I would love to learn how to make this code made by # Simon Pähler, if you have any recommendations or you can tell me something that I can search I will be really helpfull. C…

[Previous page](https://discourse.processing.org/c/processing/6.md?page=235)

[Next page](https://discourse.processing.org/c/processing/6.md?page=237)
