# Processing

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

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

**Page:** 211

---

## [Problem looping through a 4D array](https://discourse.processing.org/t/problem-looping-through-a-4d-array/20444)

<div class="topic-metadata">

**Author:** [@timAllan](https://discourse.processing.org/u/timAllan)\
**Replies:** 34\
**Last updated:** [May 12, 2020, 4:39pm UTC](https://discourse.processing.org/t/problem-looping-through-a-4d-array/20444 "2020-05-12T16:39:42Z")

</div>

Hello! I want to create an animation based on the greyscale values (0-255) of each pixel in an image. Each pixel in the image would be represented by drawing a ‘grid’ (say, 4 rows \* 3 columns) of squares (rects), with…

---

## [Flashlight example, Image and Pixels tut](https://discourse.processing.org/t/flashlight-example-image-and-pixels-tut/20683)

<div class="topic-metadata">

**Author:** [@Fibonacci](https://discourse.processing.org/u/Fibonacci)\
**Replies:** 2\
**Last updated:** [May 14, 2020, 8:03am UTC](https://discourse.processing.org/t/flashlight-example-image-and-pixels-tut/20683 "2020-05-14T08:03:00Z")

</div>

Hi, This is my first post, so please be kind if I missed something regarding rules/etiquette. So, working through all the tuts so far and everything is fine, except I’m really trying to conceptualize what two lines are…

---

## [Running really slow for a relatively simple program](https://discourse.processing.org/t/running-really-slow-for-a-relatively-simple-program/20762)

<div class="topic-metadata">

**Author:** [@Xabdro](https://discourse.processing.org/u/Xabdro)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 6:23am UTC](https://discourse.processing.org/t/running-really-slow-for-a-relatively-simple-program/20762 "2020-05-14T06:23:54Z")

</div>

I’ve made much more complicated programs than this yet its running at 30fps when at low resolution. If I go fullscreen it drops to less than ten fps. I think I must be missing something really obvious that is causing thi…

---

## [Mapping a specified number to an argument in Perlin Noise space](https://discourse.processing.org/t/mapping-a-specified-number-to-an-argument-in-perlin-noise-space/20747)

<div class="topic-metadata">

**Author:** [@yajnya](https://discourse.processing.org/u/yajnya)\
**Replies:** 1\
**Last updated:** [May 14, 2020, 5:47am UTC](https://discourse.processing.org/t/mapping-a-specified-number-to-an-argument-in-perlin-noise-space/20747 "2020-05-14T05:47:12Z")

</div>

Hello everyone, I am very new to processing. recently, I watched The coding train’s 3d terrain generation using Pelrin noise tutorial. I am also trying to create a terrain consisting of mountains. However, I want my mo…

---

## [Question about movement](https://discourse.processing.org/t/question-about-movement/20619)

<div class="topic-metadata">

**Author:** [@Arsenii](https://discourse.processing.org/u/Arsenii)\
**Replies:** 0\
**Last updated:** [May 8, 2020, 8:18am UTC](https://discourse.processing.org/t/question-about-movement/20619 "2020-05-08T08:18:42Z")

</div>

I have a problem with method move() in Bolder class. The idea is that method move() creates a vector aiming to object of class spaceShip. But it doesn’t work and i can’t understand why. Also I have a problem with deleti…

---

## [Graphics with topology](https://discourse.processing.org/t/graphics-with-topology/20778)

<div class="topic-metadata">

**Author:** [@naturespirit](https://discourse.processing.org/u/naturespirit)\
**Replies:** 2\
**Last updated:** [May 14, 2020, 1:22am UTC](https://discourse.processing.org/t/graphics-with-topology/20778 "2020-05-14T01:22:30Z")

</div>

Hi I have been looking at your site to solve my problem of large data processing. Usually I have made use of Octave in this respect, but some of the functions on Octave are not up to the standard of MATLAB, (see website…

---

## [Error - Cannot connect to Processing Server](https://discourse.processing.org/t/error-cannot-connect-to-processing-server/20835)

<div class="topic-metadata">

**Author:** [@Zeke](https://discourse.processing.org/u/Zeke)\
**Replies:** 1\
**Last updated:** [May 14, 2020, 1:08am UTC](https://discourse.processing.org/t/error-cannot-connect-to-processing-server/20835 "2020-05-14T01:08:45Z")

</div>

I tried to add Python as a mode, but when I open Contribution Manager, I received the following error: Could not connect to the Processing server. Contributions cannot be installed or updated without an Internet connect…

---

## [Extend mouseX position beyond screen](https://discourse.processing.org/t/extend-mousex-position-beyond-screen/20605)

<div class="topic-metadata">

**Author:** [@JunQu](https://discourse.processing.org/u/JunQu)\
**Replies:** 16\
**Last updated:** [May 14, 2020, 12:59am UTC](https://discourse.processing.org/t/extend-mousex-position-beyond-screen/20605 "2020-05-14T00:59:26Z")

</div>

As the topic states, I need to be able to move my mouseX “outside” of the screen, as if my screen was endless. I need it to be able to endlessly rotate a box on the x axis. The cursor should not leave the screen at any p…

---

## [Game engine shaders](https://discourse.processing.org/t/game-engine-shaders/20811)

<div class="topic-metadata">

**Author:** [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)\
**Replies:** 3\
**Last updated:** [May 14, 2020, 12:31am UTC](https://discourse.processing.org/t/game-engine-shaders/20811 "2020-05-14T00:31:14Z")

</div>

I have a question. Are there any free, open source shaders out there, that support typical game engine graphics, From unity or Godot? The features I am looking for are: shadow mapping, reflections, light falloff, norma…

---

## [Better Way To Determine Pixel's Hue Range](https://discourse.processing.org/t/better-way-to-determine-pixels-hue-range/20842)

<div class="topic-metadata">

**Author:** [@derivativejojomemes](https://discourse.processing.org/u/derivativejojomemes)\
**Replies:** 4\
**Last updated:** [May 13, 2020, 9:12pm UTC](https://discourse.processing.org/t/better-way-to-determine-pixels-hue-range/20842 "2020-05-13T21:12:05Z")

</div>

Hi! I’m working on an application that assigns color names based on the hue of a pixel in an image. The method I am currently using is inelegant: Create a String array that holds the names of colors that I want to use…

---

## [Coin acceptor for photobooth](https://discourse.processing.org/t/coin-acceptor-for-photobooth/20496)

<div class="topic-metadata">

**Author:** [@Karlosz](https://discourse.processing.org/u/Karlosz)\
**Replies:** 1\
**Last updated:** [May 13, 2020, 8:38pm UTC](https://discourse.processing.org/t/coin-acceptor-for-photobooth/20496 "2020-05-13T20:38:43Z")

</div>

Hello, I want to add a coin acceptor to my photobooth. I connected a coin acceptor trought the Ardiuno - Adruino counts pulses from acceptor and send coin value via serial port to pc. I tried to create simple program (w…

---

## [Interactive keyboard for a smartwatch processing](https://discourse.processing.org/t/interactive-keyboard-for-a-smartwatch-processing/20726)

<div class="topic-metadata">

**Author:** [@matildespinheiro](https://discourse.processing.org/u/matildespinheiro)\
**Replies:** 10\
**Last updated:** [May 13, 2020, 5:44pm UTC](https://discourse.processing.org/t/interactive-keyboard-for-a-smartwatch-processing/20726 "2020-05-13T17:44:07Z")

</div>

How can I do this but instead of 1-100kg I wanted from a-z. This is how it would work: when you press and start dragging the letters would change when you release the mouse the letter on top of the row is the letter…

---

## [Distribute for Mac?](https://discourse.processing.org/t/distribute-for-mac/20502)

<div class="topic-metadata">

**Author:** [@martinH1](https://discourse.processing.org/u/martinH1)\
**Replies:** 5\
**Last updated:** [May 13, 2020, 5:14pm UTC](https://discourse.processing.org/t/distribute-for-mac/20502 "2020-05-13T17:14:03Z")

</div>

Hi, I wrote an App for distribution to students. With both windows and Macs the OS’s grumble it’s not a signed application I believe. With Windows this can be bypassed, but I i can’t seem to bypass with OSX. Is there a …

---

## [Help with collision between two array objects](https://discourse.processing.org/t/help-with-collision-between-two-array-objects/20827)

<div class="topic-metadata">

**Author:** [@maverick24](https://discourse.processing.org/u/maverick24)\
**Replies:** 1\
**Last updated:** [May 13, 2020, 3:02pm UTC](https://discourse.processing.org/t/help-with-collision-between-two-array-objects/20827 "2020-05-13T15:02:23Z")

</div>

I’m a beginner coder learning in Processing and I’m trying to figure out how I can detect a collision between two array objects so that both objects can no longer display on the screen. The game is a shooter game, but I…

---

## [How to reset a grid back to white with timer](https://discourse.processing.org/t/how-to-reset-a-grid-back-to-white-with-timer/20810)

<div class="topic-metadata">

**Author:** [@alex](https://discourse.processing.org/u/alex)\
**Replies:** 2\
**Last updated:** [May 13, 2020, 5:46am UTC](https://discourse.processing.org/t/how-to-reset-a-grid-back-to-white-with-timer/20810 "2020-05-13T05:46:03Z")

</div>

Hi so I have a grid of 5\*5 that I have filled with random colours with each individual mouseClick. How do I reset the grid back to white with the next mouseClick? Also how do I use a timer so that the resetting animati…

---

## ["Waited 5000ms for" issue](https://discourse.processing.org/t/waited-5000ms-for-issue/10830)

<div class="topic-metadata">

**Author:** [@rogerotein](https://discourse.processing.org/u/rogerotein)\
**Replies:** 12\
**Last updated:** [May 13, 2020, 3:32am UTC](https://discourse.processing.org/t/waited-5000ms-for-issue/10830 "2020-05-13T03:32:00Z")

</div>

Hi everyone, I have encountered a problem with four nested for loops, where for each cell (X, Y), I look into all other cells to add up the distances to certain type of cells. The result is something like metaball. The…

---

## [Problem with split() and serialEvent](https://discourse.processing.org/t/problem-with-split-and-serialevent/20757)

<div class="topic-metadata">

**Author:** [@Ablah](https://discourse.processing.org/u/Ablah)\
**Replies:** 5\
**Last updated:** [May 12, 2020, 8:30pm UTC](https://discourse.processing.org/t/problem-with-split-and-serialevent/20757 "2020-05-12T20:30:40Z")

</div>

I’m trying to send data from Arduino to Processing. On the Arduino file, the code prints the value of the sensor (I’m only using one sensor) every time a button is pressed (only using one button). I just need 9 values, …

---

## [What's the best way to handle multiple libraries using the same imports](https://discourse.processing.org/t/whats-the-best-way-to-handle-multiple-libraries-using-the-same-imports/20577)

<div class="topic-metadata">

**Author:** [@George](https://discourse.processing.org/u/George)\
**Replies:** 1\
**Last updated:** [May 12, 2020, 5:44pm UTC](https://discourse.processing.org/t/whats-the-best-way-to-handle-multiple-libraries-using-the-same-imports/20577 "2020-05-12T17:44:04Z")

</div>

Hi, It seems inside the Processing editor (PDE) one can use a single library that uses an underlying java library. Here’s an example: I know one workaround would be for one of these Processing libraries to use the J…

---

## [How to play Gif after mousePressed?](https://discourse.processing.org/t/how-to-play-gif-after-mousepressed/20718)

<div class="topic-metadata">

**Author:** [@Neev](https://discourse.processing.org/u/Neev)\
**Replies:** 3\
**Last updated:** [May 12, 2020, 4:04pm UTC](https://discourse.processing.org/t/how-to-play-gif-after-mousepressed/20718 "2020-05-12T16:04:29Z")

</div>

Hi guys, I’m pretty new to Processing but I am using it for my college project. I’m having trouble getting a gif to load after the mouse has been pressed. I know that after the mouse is pressed once it takes a picture bu…

---

## [Get value from ScrollableList controlp5](https://discourse.processing.org/t/get-value-from-scrollablelist-controlp5/20752)

<div class="topic-metadata">

**Author:** [@matteocabe](https://discourse.processing.org/u/matteocabe)\
**Replies:** 2\
**Last updated:** [May 12, 2020, 7:33am UTC](https://discourse.processing.org/t/get-value-from-scrollablelist-controlp5/20752 "2020-05-12T07:33:29Z")

</div>

Hi, I’m trying to catch the value from a scrollable list created with controlp5. This is an example I found online very similiar to what I have to do. import controlP5.\*; import java.util.\*; ControlP5 cp5; String …

---

## [How to add gravity to this example?](https://discourse.processing.org/t/how-to-add-gravity-to-this-example/20751)

<div class="topic-metadata">

**Author:** [@Pepbaggen](https://discourse.processing.org/u/Pepbaggen)\
**Replies:** 2\
**Last updated:** [May 12, 2020, 1:06am UTC](https://discourse.processing.org/t/how-to-add-gravity-to-this-example/20751 "2020-05-12T01:06:12Z")

</div>

Thanks in advance!!! int schermMode = 0; //begint bij beginscherm PImage img; int punten = 0; float schiethoek = 0; //schiethoek : -100 float schiethoekrekenen; PVector plaats; //xt --\> uitendelijke pos PVector snelheid…

---

## [G4P how to make a new windows in a simple way?](https://discourse.processing.org/t/g4p-how-to-make-a-new-windows-in-a-simple-way/20338)

<div class="topic-metadata">

**Author:** [@nicks](https://discourse.processing.org/u/nicks)\
**Replies:** 2\
**Last updated:** [May 1, 2020, 4:48pm UTC](https://discourse.processing.org/t/g4p-how-to-make-a-new-windows-in-a-simple-way/20338 "2020-05-01T16:48:44Z")

</div>

Hello everyone. I’m new at processing, and I’m starting to learn how to use it. I have to write a program and I really want to make a new window appear when the user clicks a button. Something like a main menu, and fro…

---

## [Representation of Elevation and Azimuth in the plane](https://discourse.processing.org/t/representation-of-elevation-and-azimuth-in-the-plane/20730)

<div class="topic-metadata">

**Author:** [@jcduino](https://discourse.processing.org/u/jcduino)\
**Replies:** 3\
**Last updated:** [May 11, 2020, 11:34pm UTC](https://discourse.processing.org/t/representation-of-elevation-and-azimuth-in-the-plane/20730 "2020-05-11T23:34:56Z")

</div>

Hello, I am trying to represent the position of the gps satellites in the plane, X and Y coordinates. I use the TinyGps ++ library. I obtain for each satellite its Azimuth (0…359) and its elevation (0…90). My problem…

---

## [Changing from moving the grid to moving box()](https://discourse.processing.org/t/changing-from-moving-the-grid-to-moving-box/20740)

<div class="topic-metadata">

**Author:** [@JunQu](https://discourse.processing.org/u/JunQu)\
**Replies:** 3\
**Last updated:** [May 11, 2020, 10:46pm UTC](https://discourse.processing.org/t/changing-from-moving-the-grid-to-moving-box/20740 "2020-05-11T22:46:18Z")

</div>

I don’t know how to form the right topic, although I believe it explains enough. Right now, my movement controls the grid (WASD). This stops me from creating independent “enemy” boxes. I would like to make the grid stati…

---

## [Concat with an object not working](https://discourse.processing.org/t/concat-with-an-object-not-working/20632)

<div class="topic-metadata">

**Author:** [@Eyetoof](https://discourse.processing.org/u/Eyetoof)\
**Replies:** 4\
**Last updated:** [May 11, 2020, 10:58pm UTC](https://discourse.processing.org/t/concat-with-an-object-not-working/20632 "2020-05-11T22:58:02Z")

</div>

I’ve stripped the issue I am having down to isolate the issue. I figure its just a data type issue and I should maybe switch to ArrayLists but… I wanted to see if anyone had a specific insight. First off here is what I…

---

## [Is it possible to override the constructor for GWinData in G4P?](https://discourse.processing.org/t/is-it-possible-to-override-the-constructor-for-gwindata-in-g4p/20756)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 1\
**Last updated:** [May 11, 2020, 9:22pm UTC](https://discourse.processing.org/t/is-it-possible-to-override-the-constructor-for-gwindata-in-g4p/20756 "2020-05-11T21:22:48Z")

</div>

Hi again! I was trying to override the constructor for GWinData so that I could create all the controls required for the child window in the GWinData constructor (to maximize encapsulation), but it isn’t working. The pr…

---

## [Can you print a pdf file?](https://discourse.processing.org/t/can-you-print-a-pdf-file/20743)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [May 11, 2020, 10:40am UTC](https://discourse.processing.org/t/can-you-print-a-pdf-file/20743 "2020-05-11T10:40:24Z")

</div>

Can you print a pdf file? Good morning. You can print jpg files, but it is difficult to print pdf files. Is there any way? \[jpg printer code\] import java.io.FileInputStream; import javax.print.Doc; import javax.prin…

---

## [Class problem: Place four Sketches on the screen](https://discourse.processing.org/t/class-problem-place-four-sketches-on-the-screen/20689)

<div class="topic-metadata">

**Author:** [@Filo96ge](https://discourse.processing.org/u/Filo96ge)\
**Replies:** 11\
**Last updated:** [May 11, 2020, 2:39pm UTC](https://discourse.processing.org/t/class-problem-place-four-sketches-on-the-screen/20689 "2020-05-11T14:39:06Z")

</div>

Hi guys I have this situation: I created an exercise where inside of it I created a class object called A\_square, but my goal would be has in a square 666x666, four different classes (A\_B\_C\_D) which different graphic out…

---

## [Saturation filter](https://discourse.processing.org/t/saturation-filter/20734)

<div class="topic-metadata">

**Author:** [@IRIGIMA](https://discourse.processing.org/u/IRIGIMA)\
**Replies:** 1\
**Last updated:** [May 11, 2020, 6:13am UTC](https://discourse.processing.org/t/saturation-filter/20734 "2020-05-11T06:13:28Z")

</div>

So I am attempting to hard code a Saturation filter based on a built in function from another language. (Graphics Mode Saturation) All to do with Luminance / HSB and colour space etc with no record of algorithmic proces…

---

## [Create .exe to export without showing the source code](https://discourse.processing.org/t/create-exe-to-export-without-showing-the-source-code/20724)

<div class="topic-metadata">

**Author:** [@juanjoc](https://discourse.processing.org/u/juanjoc)\
**Replies:** 1\
**Last updated:** [May 10, 2020, 11:25pm UTC](https://discourse.processing.org/t/create-exe-to-export-without-showing-the-source-code/20724 "2020-05-10T23:25:09Z")

</div>

Hi everyone. I wonder If it is possible to export a processing application for windows (e.g. .exe) that does not show the source code as happens in processing for android where it is one file to install and then run the…

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

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