# Latest

**URL:** https://discourse.processing.org/latest.md?page=350

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

**Page:** 351

---

## [Reset grid back to white](https://discourse.processing.org/t/reset-grid-back-to-white/20782)

<div class="topic-metadata">

**Author:** [@alex](https://discourse.processing.org/u/alex)\
**Replies:** 12\
**Last updated:** [May 14, 2020, 11:34am UTC](https://discourse.processing.org/t/reset-grid-back-to-white/20782 "2020-05-14T11:34:54Z")

</div>

Hi all. I’m new to Processing. I have managed to make this grid of squares which is assigned a random colour after each mouse click. After all the squares have been filled, I want to reset the squares back to white one …

---

## [Constructor to create a new class instance by assignment](https://discourse.processing.org/t/constructor-to-create-a-new-class-instance-by-assignment/20803)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 15\
**Last updated:** [May 14, 2020, 12:43pm UTC](https://discourse.processing.org/t/constructor-to-create-a-new-class-instance-by-assignment/20803 "2020-05-14T12:43:12Z")

</div>

I was hoping I could create a new class instance by assignment like this: innerRect = new Rect(outside.insetBy(m2, m2)); Is there any way to let a class have an constructor that can take an instance of the same type? O…

---

## [Question about GTextArea.setText() in G4P](https://discourse.processing.org/t/question-about-gtextarea-settext-in-g4p/20856)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 3\
**Last updated:** [May 14, 2020, 10:55am UTC](https://discourse.processing.org/t/question-about-gtextarea-settext-in-g4p/20856 "2020-05-14T10:55:57Z")

</div>

I have a question about GTextArea.setText(). I wrote a function that loads some lines from a text file and then uses GTextArea.setText() to load the lines into a text area. It seemed to be skipping empty lines, and at fi…

---

## [defaultCanvas problem](https://discourse.processing.org/t/defaultcanvas-problem/20776)

<div class="topic-metadata">

**Author:** [@TDSV](https://discourse.processing.org/u/TDSV)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 10:51am UTC](https://discourse.processing.org/t/defaultcanvas-problem/20776 "2020-05-14T10:51:26Z")

</div>

Hello I have a problem with p5js, I use video capture. The code works well and is displayed correctly. But by associating my P5Js with my HTML, I have two defaultCanvas that appear in my HTML when I inspect. one with my…

---

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

---

## [Can not install sdk in win7 64x](https://discourse.processing.org/t/can-not-install-sdk-in-win7-64x/20846)

<div class="topic-metadata">

**Author:** [@thepheonix213](https://discourse.processing.org/u/thepheonix213)\
**Replies:** 1\
**Last updated:** [May 13, 2020, 10:57pm UTC](https://discourse.processing.org/t/can-not-install-sdk-in-win7-64x/20846 "2020-05-13T22:57:31Z")

</div>

i am using processing in win7 64x, and i can not install sdk. when it asks where if i install it manually or auto, it can not be dowloaded help please

---

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

---

## [Processing.py sketches sketches on the web](https://discourse.processing.org/t/processing-py-sketches-sketches-on-the-web/20750)

<div class="topic-metadata">

**Author:** [@PawnMongo](https://discourse.processing.org/u/PawnMongo)\
**Replies:** 3\
**Last updated:** [May 13, 2020, 9:43am UTC](https://discourse.processing.org/t/processing-py-sketches-sketches-on-the-web/20750 "2020-05-13T09:43:47Z")

</div>

Is there some simple way that I can upload a sketch created in Processing.py to the web so that it can be run by someone without Processing.py on their computer? If not, is there a plan to add this capability in the nea…

---

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

---

## [The function "noCursor()" does not exist](https://discourse.processing.org/t/the-function-nocursor-does-not-exist/18618)

<div class="topic-metadata">

**Author:** [@bowo](https://discourse.processing.org/u/bowo)\
**Replies:** 7\
**Last updated:** [May 12, 2020, 7:50pm UTC](https://discourse.processing.org/t/the-function-nocursor-does-not-exist/18618 "2020-05-12T19:50:49Z")

</div>

Hello, everyone, I have tapped the following code found as example in https://processing.org/reference/noCursor\_.html . While compilation, it told me that the function “noCursor()” does not exist, and The variable “HAND”…

---

## [Loading an array of images on mouse position - going from processing to p5.js](https://discourse.processing.org/t/loading-an-array-of-images-on-mouse-position-going-from-processing-to-p5-js/20780)

<div class="topic-metadata">

**Author:** [@mixel](https://discourse.processing.org/u/mixel)\
**Replies:** 1\
**Last updated:** [May 12, 2020, 10:19pm UTC](https://discourse.processing.org/t/loading-an-array-of-images-on-mouse-position-going-from-processing-to-p5-js/20780 "2020-05-12T22:19:19Z")

</div>

Hi, I’ve created this working code in processing and would like to implement it on a website - I am completely new to this, so I am not sure whether or not it is possible to convert this to p5.js with just a few changes…

---

## [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 do I enable/disable a selection box?](https://discourse.processing.org/t/how-do-i-enable-disable-a-selection-box/20656)

<div class="topic-metadata">

**Author:** [@Bassam](https://discourse.processing.org/u/Bassam)\
**Replies:** 4\
**Last updated:** [May 12, 2020, 5:34pm UTC](https://discourse.processing.org/t/how-do-i-enable-disable-a-selection-box/20656 "2020-05-12T17:34:46Z")

</div>

Is this possible? I know that I can disable options in a selection box via .disable(option) but I’d like to be able to enable/disable the box itself.

---

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

---

## [Spam attacks on this forum](https://discourse.processing.org/t/spam-attacks-on-this-forum/20646)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 14\
**Last updated:** [May 12, 2020, 3:49pm UTC](https://discourse.processing.org/t/spam-attacks-on-this-forum/20646 "2020-05-12T15:49:26Z")

</div>

Currently we are starting to get a new kind of attack from spambots (or spam posting humans). The spammer creates a new account, then copy-pastes a programming question from Reddit r/Processing. They then return many h…

---

## [Processing in android studio with androidx support](https://discourse.processing.org/t/processing-in-android-studio-with-androidx-support/13819)

<div class="topic-metadata">

**Author:** [@technew](https://discourse.processing.org/u/technew)\
**Replies:** 9\
**Last updated:** [May 12, 2020, 12:25pm UTC](https://discourse.processing.org/t/processing-in-android-studio-with-androidx-support/13819 "2020-05-12T12:25:50Z")

</div>

The latest version of android studio use new androidx support library as default. You could still refactor to AppCompat but it is not recommended and one day it will be completely deprecated. The android version of pro…

[Previous page](https://discourse.processing.org/latest.md?page=349)

[Next page](https://discourse.processing.org/latest.md?page=351)
