# Processing

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

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

**Page:** 302

---

## [Not run for openjdk 12 .. export application 64bit](https://discourse.processing.org/t/not-run-for-openjdk-12-export-application-64bit/10974)

<div class="topic-metadata">

**Author:** [@lemon](https://discourse.processing.org/u/lemon)\
**Replies:** 3\
**Last updated:** [May 7, 2019, 4:03pm UTC](https://discourse.processing.org/t/not-run-for-openjdk-12-export-application-64bit/10974 "2019-05-07T16:03:58Z")

</div>

My export app windows 64 bit my message. Java 1.8.x obsolete … for windows 10 64 home. and oracle ideas ? no my include java on application . How to upgrade processing for openjdk Thanks

---

## [Need help with arrays](https://discourse.processing.org/t/need-help-with-arrays/10749)

<div class="topic-metadata">

**Author:** [@abigail](https://discourse.processing.org/u/abigail)\
**Replies:** 5\
**Last updated:** [May 7, 2019, 10:53am UTC](https://discourse.processing.org/t/need-help-with-arrays/10749 "2019-05-07T10:53:41Z")

</div>

Hi :slight\_smile: Sun sun1; Hill hill1; Hill hill2; Star\[\] stars = new Star\[2\]; float r = 0; float g = 0; float b = 200; void setup() { size(600, 400); sun1 = new Sun(); hill1 = new Hill(0); hill2 = new Hi…

---

## [Object Methods not looping](https://discourse.processing.org/t/object-methods-not-looping/10995)

<div class="topic-metadata">

**Author:** [@Timo1](https://discourse.processing.org/u/Timo1)\
**Replies:** 1\
**Last updated:** [May 7, 2019, 10:35am UTC](https://discourse.processing.org/t/object-methods-not-looping/10995 "2019-05-07T10:35:54Z")

</div>

Hi there, Not sure if this a bug or if I have done something silly, but I have a very simple sketch using a class which for some reason is not updating/looping… Circle ball; void setup() { size (100,100); backgr…

---

## [NPE on a synchronized(this) statement?](https://discourse.processing.org/t/npe-on-a-synchronized-this-statement/10904)

<div class="topic-metadata">

**Author:** [@LoliProcessor](https://discourse.processing.org/u/LoliProcessor)\
**Replies:** 6\
**Last updated:** [May 7, 2019, 8:33am UTC](https://discourse.processing.org/t/npe-on-a-synchronized-this-statement/10904 "2019-05-07T08:33:16Z")

</div>

Tanctikon is an enclosing instance of the class this synchronized statement is called from. Hmmm…

---

## [Background() causing weirdness with get()](https://discourse.processing.org/t/background-causing-weirdness-with-get/4959)

<div class="topic-metadata">

**Author:** [@P-Joe-S](https://discourse.processing.org/u/P-Joe-S)\
**Replies:** 10\
**Last updated:** [November 3, 2018, 9:53pm UTC](https://discourse.processing.org/t/background-causing-weirdness-with-get/4959 "2018-11-03T21:53:22Z")

</div>

I’m trying to use get() to make patterns using the previous frame, so I’m calling get() at the start of draw(). If I use background() after that to clear the frame, I find that what get() has given me is not the previou…

---

## [Separating Midi Keyboard into Octaves/Sections](https://discourse.processing.org/t/separating-midi-keyboard-into-octaves-sections/10944)

<div class="topic-metadata">

**Author:** [@KIE13579](https://discourse.processing.org/u/KIE13579)\
**Replies:** 3\
**Last updated:** [May 6, 2019, 10:26pm UTC](https://discourse.processing.org/t/separating-midi-keyboard-into-octaves-sections/10944 "2019-05-06T22:26:33Z")

</div>

Hey Guys, Fairly new to coding so apologies if this is an easy fix, I’ve been stumbling my way through this code up until this point. Essentially, the code produces a circle - with size depending on what note it presse…

---

## [Can't construct inside of a class](https://discourse.processing.org/t/cant-construct-inside-of-a-class/10978)

<div class="topic-metadata">

**Author:** [@drezzydrez](https://discourse.processing.org/u/drezzydrez)\
**Replies:** 1\
**Last updated:** [May 6, 2019, 7:14pm UTC](https://discourse.processing.org/t/cant-construct-inside-of-a-class/10978 "2019-05-06T19:14:22Z")

</div>

I have a class that I would like to have an envelop class created with it and only for it. I keep trying to construct an envelop inside it but can’t because new Env(this); won’t work and gives a Constructor doesn’t exist…

---

## [Change rectangles seperately in for loop](https://discourse.processing.org/t/change-rectangles-seperately-in-for-loop/10908)

<div class="topic-metadata">

**Author:** [@M19](https://discourse.processing.org/u/M19)\
**Replies:** 12\
**Last updated:** [May 6, 2019, 1:01pm UTC](https://discourse.processing.org/t/change-rectangles-seperately-in-for-loop/10908 "2019-05-06T13:01:13Z")

</div>

Hi, I wanted to make a screen full of rectangles which if you hover over them with your mouse, start to rotate (I’m not done with the rotating part yet). Right now I have the rectangles but if you hover over them with y…

---

## [How to make sketch size like the gray darker area?](https://discourse.processing.org/t/how-to-make-sketch-size-like-the-gray-darker-area/10964)

<div class="topic-metadata">

**Author:** [@stan\_11](https://discourse.processing.org/u/stan_11)\
**Replies:** 3\
**Last updated:** [May 6, 2019, 12:27pm UTC](https://discourse.processing.org/t/how-to-make-sketch-size-like-the-gray-darker-area/10964 "2019-05-06T12:27:42Z")

</div>

This is my code, But I only want the darker gray area in the picture, however, it seems that the default height of the processing window is 100. so that I can not shrink it anymore, is there anyone knows how to solve it…

---

## [I Need Help! (Exam)](https://discourse.processing.org/t/i-need-help-exam/10841)

<div class="topic-metadata">

**Author:** [@Oiwaz](https://discourse.processing.org/u/Oiwaz)\
**Replies:** 6\
**Last updated:** [May 6, 2019, 8:31am UTC](https://discourse.processing.org/t/i-need-help-exam/10841 "2019-05-06T08:31:22Z")

</div>

I’m making a simplified game, were the cirkel has to collect trash. (It’s simplified a lot) But there is a challenge and that is that the cirkel cannot be hit by the cars. BUT here’s my problem. I can’t spawn infinite…

---

## [Select Folder in the Second Sketch？？](https://discourse.processing.org/t/select-folder-in-the-second-sketch/10911)

<div class="topic-metadata">

**Author:** [@stan\_11](https://discourse.processing.org/u/stan_11)\
**Replies:** 1\
**Last updated:** [May 6, 2019, 8:34am UTC](https://discourse.processing.org/t/select-folder-in-the-second-sketch/10911 "2019-05-06T08:34:41Z")

</div>

I am looking for pop up a window from my sketch like this, So when people click the select , the window to choose folder will pop up. So usually we call the selectFolder() to pop up this window. However, the SelectFol…

---

## [How to Remove the Close Button with G4P](https://discourse.processing.org/t/how-to-remove-the-close-button-with-g4p/10358)

<div class="topic-metadata">

**Author:** [@graysonh](https://discourse.processing.org/u/graysonh)\
**Replies:** 13\
**Last updated:** [May 6, 2019, 3:19am UTC](https://discourse.processing.org/t/how-to-remove-the-close-button-with-g4p/10358 "2019-05-06T03:19:22Z")

</div>

Hello all, I am using G4P to create an application and I would like to either remove completely or simply grey out the gui close button. I know how to stop the window from closing when the close button is pressed, but I…

---

## [How do I implement push() and pop() to multiple objects of a class?](https://discourse.processing.org/t/how-do-i-implement-push-and-pop-to-multiple-objects-of-a-class/10896)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 15\
**Last updated:** [May 5, 2019, 10:14pm UTC](https://discourse.processing.org/t/how-do-i-implement-push-and-pop-to-multiple-objects-of-a-class/10896 "2019-05-05T22:14:20Z")

</div>

There are 2 jellybean objects. I want each to: 1. appear in a different location. 2. spin at a different rate (I know how to do this via non-OOP coding. But once I reformat as OOP I can’t figure out how to implement …

---

## [Boolean and making titles](https://discourse.processing.org/t/boolean-and-making-titles/10920)

<div class="topic-metadata">

**Author:** [@elangit](https://discourse.processing.org/u/elangit)\
**Replies:** 1\
**Last updated:** [May 4, 2019, 9:11pm UTC](https://discourse.processing.org/t/boolean-and-making-titles/10920 "2019-05-04T21:11:23Z")

</div>

So I need help for my homework, but for these steps I don’t understand what I am doing wrong and how to fix it. These functions are meant to get the information of the earthquakes and draw a popup with the indicated info…

---

## [How to Drop Popups with given info](https://discourse.processing.org/t/how-to-drop-popups-with-given-info/10922)

<div class="topic-metadata">

**Author:** [@elangit](https://discourse.processing.org/u/elangit)\
**Replies:** 3\
**Last updated:** [May 5, 2019, 6:46pm UTC](https://discourse.processing.org/t/how-to-drop-popups-with-given-info/10922 "2019-05-05T18:46:24Z")

</div>

I get confused on this step of the homework and the function is supposed to: “The behavior of this method should be as follows: Given data on one earthquake, and the x, y coordinates of the center of its corresponding …

---

## [How to reset a loop and better edge detection](https://discourse.processing.org/t/how-to-reset-a-loop-and-better-edge-detection/10927)

<div class="topic-metadata">

**Author:** [@blu](https://discourse.processing.org/u/blu)\
**Replies:** 2\
**Last updated:** [May 5, 2019, 11:09am UTC](https://discourse.processing.org/t/how-to-reset-a-loop-and-better-edge-detection/10927 "2019-05-05T11:09:04Z")

</div>

Trying to make my game where all the balls go into the bottom right "basket then their x,y cord is reset 0. Or maybe the loop restarts, I’m really not sure how to approach it. Also, my collision is based on the distance …

---

## [16bit grayscale images](https://discourse.processing.org/t/16bit-grayscale-images/10795)

<div class="topic-metadata">

**Author:** [@Cerald](https://discourse.processing.org/u/Cerald)\
**Replies:** 6\
**Last updated:** [May 5, 2019, 9:27am UTC](https://discourse.processing.org/t/16bit-grayscale-images/10795 "2019-05-05T09:27:44Z")

</div>

As I understand it right now Processing uses a 32bit value for each pixel in an image, devided into 8bits for each color plus an alpha channel. However I would like load, modify and save grayscale images with a single 1…

---

## [Changing the Color](https://discourse.processing.org/t/changing-the-color/10925)

<div class="topic-metadata">

**Author:** [@elangit](https://discourse.processing.org/u/elangit)\
**Replies:** 4\
**Last updated:** [May 5, 2019, 4:05am UTC](https://discourse.processing.org/t/changing-the-color/10925 "2019-05-05T04:05:23Z")

</div>

I’m trying to change the color of each circle depending on the magnitude. However, they all remain blue. This is the assignment: Determine what color the circle for this earthquake should be: If the magnitude is less…

---

## [More rows of eyes, with rectangle pupils](https://discourse.processing.org/t/more-rows-of-eyes-with-rectangle-pupils/10905)

<div class="topic-metadata">

**Author:** [@Mikalaen](https://discourse.processing.org/u/Mikalaen)\
**Replies:** 18\
**Last updated:** [May 4, 2019, 7:18pm UTC](https://discourse.processing.org/t/more-rows-of-eyes-with-rectangle-pupils/10905 "2019-05-04T19:18:20Z")

</div>

Hey guys, I want to make this code more advanced. I would like to have more rows of eyes both the horisontal and vertical way. How do i do that? Should i use the “for (int …)” ?? And then i want the pupils in the eye t…

---

## [More serial open at a time](https://discourse.processing.org/t/more-serial-open-at-a-time/10884)

<div class="topic-metadata">

**Author:** [@Frank-95](https://discourse.processing.org/u/Frank-95)\
**Replies:** 3\
**Last updated:** [May 4, 2019, 4:16pm UTC](https://discourse.processing.org/t/more-serial-open-at-a-time/10884 "2019-05-04T16:16:57Z")

</div>

Hello, does anyone knows if processing is able to communicate with two arduinos simultaneously? At the moment I don’t have two arduino to test the code but I’m trying to write it to progress with my work in the while. …

---

## [Trouble running P3D on MacBook](https://discourse.processing.org/t/trouble-running-p3d-on-macbook/9342)

<div class="topic-metadata">

**Author:** [@Maestr0](https://discourse.processing.org/u/Maestr0)\
**Replies:** 9\
**Last updated:** [May 4, 2019, 4:02pm UTC](https://discourse.processing.org/t/trouble-running-p3d-on-macbook/9342 "2019-05-04T16:02:32Z")

</div>

Running latest versions of Java, MacOS etc. Error I get on start up: 0 AppKit 0x00007fff456832e3 -\[NSWindow(NSWindow\_Theme) \_postWindowNeedsToResetDragMarginsUnlessPostingDisabled\] + 386 …

---

## [Full screen not filling second monitor in MacOS Mojave](https://discourse.processing.org/t/full-screen-not-filling-second-monitor-in-macos-mojave/8163)

<div class="topic-metadata">

**Author:** [@scottmetoyer](https://discourse.processing.org/u/scottmetoyer)\
**Replies:** 2\
**Last updated:** [May 4, 2019, 4:00pm UTC](https://discourse.processing.org/t/full-screen-not-filling-second-monitor-in-macos-mojave/8163 "2019-05-04T16:00:25Z")

</div>

I’m just starting out with Processing and trying to get a basic full screen window displaying on a second monitor on MacOS Mojave with this code (Processing 3.5.3, P3D renderer): void setup() { fullScreen(P3D, 2); } …

---

## [Processing pool game bug](https://discourse.processing.org/t/processing-pool-game-bug/10559)

<div class="topic-metadata">

**Author:** [@mrblue216](https://discourse.processing.org/u/mrblue216)\
**Replies:** 4\
**Last updated:** [May 4, 2019, 9:25am UTC](https://discourse.processing.org/t/processing-pool-game-bug/10559 "2019-05-04T09:25:44Z")

</div>

Hello guys, I need help for a processing project. Here my code: When i shoot with tail the ball do not go straight and make a curve. I want to stop the ball Thanks ! //VARIABLES float y = 0; float w = 150; float h = …

---

## [Help me with my thesis database UI](https://discourse.processing.org/t/help-me-with-my-thesis-database-ui/10737)

<div class="topic-metadata">

**Author:** [@greggy](https://discourse.processing.org/u/greggy)\
**Replies:** 7\
**Last updated:** [May 4, 2019, 6:02am UTC](https://discourse.processing.org/t/help-me-with-my-thesis-database-ui/10737 "2019-05-04T06:02:39Z")

</div>

So this is my last resort, all my IT graduate friends are busy and cannot help me right now. First of all, i dont really have much knowledge about coding specially java. this project is my thesis for school. (im taking …

---

## [How to get rid of click at the beginning of an Audiosample?](https://discourse.processing.org/t/how-to-get-rid-of-click-at-the-beginning-of-an-audiosample/10864)

<div class="topic-metadata">

**Author:** [@Aeggy](https://discourse.processing.org/u/Aeggy)\
**Replies:** 5\
**Last updated:** [May 4, 2019, 12:05am UTC](https://discourse.processing.org/t/how-to-get-rid-of-click-at-the-beginning-of-an-audiosample/10864 "2019-05-04T00:05:39Z")

</div>

Hi. I noticed that audiosamples I play always have a click in the beginning, which is not a good quality for use. To demonstrate it, I play an inaudible 1hz sinewave below. Press d to play the wave and you hear the click…

---

## [Issue on my Sketch](https://discourse.processing.org/t/issue-on-my-sketch/10877)

<div class="topic-metadata">

**Author:** [@realmeteo](https://discourse.processing.org/u/realmeteo)\
**Replies:** 1\
**Last updated:** [May 3, 2019, 9:11pm UTC](https://discourse.processing.org/t/issue-on-my-sketch/10877 "2019-05-03T21:11:33Z")

</div>

I resolved by myself: Because the screen is updated only at the end of draw() Hello, I’m newbie on processung: I start my processing job from a fine working example that is this: Gauge second, minute, hour; int secol…

---

## [How to take input in the canvas drawn by the user](https://discourse.processing.org/t/how-to-take-input-in-the-canvas-drawn-by-the-user/10829)

<div class="topic-metadata">

**Author:** [@Procoder](https://discourse.processing.org/u/Procoder)\
**Replies:** 4\
**Last updated:** [May 3, 2019, 9:07pm UTC](https://discourse.processing.org/t/how-to-take-input-in-the-canvas-drawn-by-the-user/10829 "2019-05-03T21:07:50Z")

</div>

How can i use an input like a drawing as an object drawn by the user

---

## [Need Help With Ray Casting](https://discourse.processing.org/t/need-help-with-ray-casting/10833)

<div class="topic-metadata">

**Author:** [@TheBigCx](https://discourse.processing.org/u/TheBigCx)\
**Replies:** 1\
**Last updated:** [May 3, 2019, 8:42pm UTC](https://discourse.processing.org/t/need-help-with-ray-casting/10833 "2019-05-03T20:42:22Z")

</div>

I’m currently developing a Minecraft clone, and I’m stuck on block editing. I need to be able to break and place blocks, but can’t figure it out with Ray Casting. I am using QueasyCam to take care of movement.

---

## [Using a PVector](https://discourse.processing.org/t/using-a-pvector/10866)

<div class="topic-metadata">

**Author:** [@Process321](https://discourse.processing.org/u/Process321)\
**Replies:** 18\
**Last updated:** [May 3, 2019, 4:47pm UTC](https://discourse.processing.org/t/using-a-pvector/10866 "2019-05-03T16:47:45Z")

</div>

Looking to adapt the code below

---

## [Launcher seems to be ignored in the preferences](https://discourse.processing.org/t/launcher-seems-to-be-ignored-in-the-preferences/10840)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 8\
**Last updated:** [May 3, 2019, 4:39pm UTC](https://discourse.processing.org/t/launcher-seems-to-be-ignored-in-the-preferences/10840 "2019-05-03T16:39:49Z")

</div>

Hi! In my preferences.txt I have a line like this: launcher=/home/user/bin/showDirectory.fish This used to work fie in the past but not anymore. When I press CTRL+K it opens a terminal window which closes immediately. …

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

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