# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&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

---

## [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…

---

## [Present mode, what is it and when would I need it?](https://discourse.processing.org/t/present-mode-what-is-it-and-when-would-i-need-it/20686)

<div class="topic-metadata">

**Author:** [@wsintra](https://discourse.processing.org/u/wsintra)\
**Replies:** 4\
**Last updated:** [May 10, 2020, 11:20pm UTC](https://discourse.processing.org/t/present-mode-what-is-it-and-when-would-i-need-it/20686 "2020-05-10T23:20:44Z")

</div>

Hi, I have just noticed the present mode, I understand I can use fullscreen in setup to make a fullscreen, but when would I need to use present mode, and is it true in present mode I can change code on the fly? I tried …

---

## [Let user input date and time and store it as variable](https://discourse.processing.org/t/let-user-input-date-and-time-and-store-it-as-variable/20705)

<div class="topic-metadata">

**Author:** [@kimikim](https://discourse.processing.org/u/kimikim)\
**Replies:** 2\
**Last updated:** [May 10, 2020, 9:39pm UTC](https://discourse.processing.org/t/let-user-input-date-and-time-and-store-it-as-variable/20705 "2020-05-10T21:39:22Z")

</div>

hello… I am a beginner in processing may I know how can I let user enter date and time of their choice and then assign it to a variable in date and time format because 1 want to compare the input time with current t…

---

## [Reading / Writing HSB values](https://discourse.processing.org/t/reading-writing-hsb-values/20710)

<div class="topic-metadata">

**Author:** [@IRIGIMA](https://discourse.processing.org/u/IRIGIMA)\
**Replies:** 9\
**Last updated:** [May 10, 2020, 9:34pm UTC](https://discourse.processing.org/t/reading-writing-hsb-values/20710 "2020-05-10T21:34:36Z")

</div>

Using the below code, trying to read the HSB values from PGraphics screen. Reading is from random areas. As a test, am currently writing back read values expecting no change. Running code shows change as should show u…

---

## [G4P: Can't 'select' DropList item if there is only one item in the list](https://discourse.processing.org/t/g4p-cant-select-droplist-item-if-there-is-only-one-item-in-the-list/20606)

<div class="topic-metadata">

**Author:** [@PhilHaw](https://discourse.processing.org/u/PhilHaw)\
**Replies:** 11\
**Last updated:** [May 10, 2020, 9:16pm UTC](https://discourse.processing.org/t/g4p-cant-select-droplist-item-if-there-is-only-one-item-in-the-list/20606 "2020-05-10T21:16:15Z")

</div>

In my app I have a DropList to let the user select which Serial port (COM port) that an external device is connected to via USB. It works great if there are at least two COM ports present in the list. For example if I se…

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

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