# Processing

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

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

**Page:** 92

---

## [How to code button 2](https://discourse.processing.org/t/how-to-code-button-2/35167)

<div class="topic-metadata">

**Author:** [@ata](https://discourse.processing.org/u/ata)\
**Replies:** 2\
**Last updated:** [February 17, 2022, 9:15am UTC](https://discourse.processing.org/t/how-to-code-button-2/35167 "2022-02-17T09:15:44Z")

</div>

i cant manage to code button 2. the 3 is done and it stamps the pshape “v” i have to code button 2 wich should basically do the same as 3 but instead of the “v” pshape should stamp phsape “u” but i dont know how to make…

---

## [Processing window not turned on on Mac](https://discourse.processing.org/t/processing-window-not-turned-on-on-mac/35221)

<div class="topic-metadata">

**Author:** [@Celsius](https://discourse.processing.org/u/Celsius)\
**Replies:** 1\
**Last updated:** [February 17, 2022, 3:32am UTC](https://discourse.processing.org/t/processing-window-not-turned-on-on-mac/35221 "2022-02-17T03:32:32Z")

</div>

I just downloaded processing on Mac, following the instructions, but when I clicked on the icon, nothing happened. I rebooted my Mac and it is still the same. The instruction says “if the program didn’t start, visit the…

---

## [Problem running Processing project in VSCode](https://discourse.processing.org/t/problem-running-processing-project-in-vscode/35198)

<div class="topic-metadata">

**Author:** [@avina](https://discourse.processing.org/u/avina)\
**Replies:** 4\
**Last updated:** [February 17, 2022, 1:00am UTC](https://discourse.processing.org/t/problem-running-processing-project-in-vscode/35198 "2022-02-17T01:00:02Z")

</div>

Hello, I am trying to get set up with processing in VSCode, and I am encountering the following problem when attempting to run the processing project. I followed this tutorial to get started. I don’t believe that I miss…

---

## [Problems running processing on M1 Mac](https://discourse.processing.org/t/problems-running-processing-on-m1-mac/35218)

<div class="topic-metadata">

**Author:** [@barrysmyth](https://discourse.processing.org/u/barrysmyth)\
**Replies:** 0\
**Last updated:** [February 16, 2022, 10:42pm UTC](https://discourse.processing.org/t/problems-running-processing-on-m1-mac/35218 "2022-02-16T22:42:13Z")

</div>

Just installed processing on M1 Mac but the console shows endless “java.lang.NoSuchMethodError: accessibilityHitTest” error messages. I have Java installed but not sure what is going on and haven’t been able to locate he…

---

## [Processing and Arduino standard Firmata: switching PShape with another PShape pressing a button on Arduino](https://discourse.processing.org/t/processing-and-arduino-standard-firmata-switching-pshape-with-another-pshape-pressing-a-button-on-arduino/35162)

<div class="topic-metadata">

**Author:** [@ata](https://discourse.processing.org/u/ata)\
**Replies:** 1\
**Last updated:** [February 16, 2022, 3:33pm UTC](https://discourse.processing.org/t/processing-and-arduino-standard-firmata-switching-pshape-with-another-pshape-pressing-a-button-on-arduino/35162 "2022-02-16T15:33:41Z")

</div>

hello. i am creating an arduino machine. it is talking to processing using the library standardFirmata(arduino). in this arduino there are three elements: two buttons and a joystick. a Pshape can be moved in the sketch w…

---

## [How do I make the particles move away from the threshold?](https://discourse.processing.org/t/how-do-i-make-the-particles-move-away-from-the-threshold/35118)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 2\
**Last updated:** [February 16, 2022, 2:49pm UTC](https://discourse.processing.org/t/how-do-i-make-the-particles-move-away-from-the-threshold/35118 "2022-02-16T14:49:24Z")

</div>

Hello! I’ve asked a similar question tonight but worded it very stupidly and can’t work out how to delete it (apologies! Will work it out). Basically, I’d like the particles to move away from points of the highest thres…

---

## [Recombining 2 bytes into a signed int](https://discourse.processing.org/t/recombining-2-bytes-into-a-signed-int/35067)

<div class="topic-metadata">

**Author:** [@TKez](https://discourse.processing.org/u/TKez)\
**Replies:** 6\
**Last updated:** [February 16, 2022, 2:45pm UTC](https://discourse.processing.org/t/recombining-2-bytes-into-a-signed-int/35067 "2022-02-16T14:45:02Z")

</div>

Sending a byte stream over from an Arduino which includes some int16\_t values (little endian) but struggling to recombine them. This is as close as I can get, but I loose the sign. int1 = (inBuffer\[1\]\<\<8) | in…

---

## [How to make object "vibrate" before moving upwards?](https://discourse.processing.org/t/how-to-make-object-vibrate-before-moving-upwards/35157)

<div class="topic-metadata">

**Author:** [@AndrewTheGoat22](https://discourse.processing.org/u/AndrewTheGoat22)\
**Replies:** 6\
**Last updated:** [February 16, 2022, 1:03pm UTC](https://discourse.processing.org/t/how-to-make-object-vibrate-before-moving-upwards/35157 "2022-02-16T13:03:47Z")

</div>

I want to make this square move back and forth (so that it looks like it’s vibrating or shaking) for several seconds before making it go upwards. How would I go about doing that? Thanks! \< int y; int yPos=350; // con…

---

## [Reproducability of "Randomness" by Seed](https://discourse.processing.org/t/reproducability-of-randomness-by-seed/35148)

<div class="topic-metadata">

**Author:** [@Quertz](https://discourse.processing.org/u/Quertz)\
**Replies:** 14\
**Last updated:** [February 16, 2022, 1:12pm UTC](https://discourse.processing.org/t/reproducability-of-randomness-by-seed/35148 "2022-02-16T13:12:10Z")

</div>

Hi Guys, I work with Processing since 2002 or so. I love it and it is very rare that I have a problem. But now I have: It´s with the reproducability of my Algo. To get a reproducable Sequence of random-numbers, I call…

---

## [Arraylist not updated using arrays in object](https://discourse.processing.org/t/arraylist-not-updated-using-arrays-in-object/35200)

<div class="topic-metadata">

**Author:** [@Kylle](https://discourse.processing.org/u/Kylle)\
**Replies:** 2\
**Last updated:** [February 16, 2022, 11:04am UTC](https://discourse.processing.org/t/arraylist-not-updated-using-arrays-in-object/35200 "2022-02-16T11:04:11Z")

</div>

Hi I have been working quite a lot with Processing the last months. Now I am trying to add ArrayList of objects but I get such a strange result as though the List is not updated correctly. I guess I am making a stupid …

---

## [Will C++ be faster?](https://discourse.processing.org/t/will-c-be-faster/34986)

<div class="topic-metadata">

**Author:** [@Jake10023](https://discourse.processing.org/u/Jake10023)\
**Replies:** 8\
**Last updated:** [February 16, 2022, 7:28am UTC](https://discourse.processing.org/t/will-c-be-faster/34986 "2022-02-16T07:28:31Z")

</div>

I’m trying to understand the speed issue. I am running Windows 7 64-bit. I wrote a simple test program (below) that basically blinks the window black and white. At reasonably high frame rates ( 5 and higher), the col…

---

## [How to Determine Structure of a Data File](https://discourse.processing.org/t/how-to-determine-structure-of-a-data-file/35189)

<div class="topic-metadata">

**Author:** [@kdeemer](https://discourse.processing.org/u/kdeemer)\
**Replies:** 1\
**Last updated:** [February 15, 2022, 9:57pm UTC](https://discourse.processing.org/t/how-to-determine-structure-of-a-data-file/35189 "2022-02-15T21:57:25Z")

</div>

I am trying to use a DAT file from an old sleep monitor (ZEO). I have downloaded a library and sketch examples that were written for this file type several years ago. I am able to get some of the examples to work with my…

---

## [Network library usage](https://discourse.processing.org/t/network-library-usage/35186)

<div class="topic-metadata">

**Author:** [@Conchito](https://discourse.processing.org/u/Conchito)\
**Replies:** 3\
**Last updated:** [February 15, 2022, 8:26pm UTC](https://discourse.processing.org/t/network-library-usage/35186 "2022-02-15T20:26:29Z")

</div>

Hello, I tried to reproduce examples from the processing network library for pactise sockets data exchanges. I used the Processing library reference example : import processing.net.\*; Server myServer; int val = 0; …

---

## [Write canvas in Client and send to Server (Array of point)?](https://discourse.processing.org/t/write-canvas-in-client-and-send-to-server-array-of-point/35179)

<div class="topic-metadata">

**Author:** [@Stefano](https://discourse.processing.org/u/Stefano)\
**Replies:** 2\
**Last updated:** [February 15, 2022, 12:02pm UTC](https://discourse.processing.org/t/write-canvas-in-client-and-send-to-server-array-of-point/35179 "2022-02-15T12:02:43Z")

</div>

Hi everyone. I have a problem. I can’t send matrix of point ( write canvas) and after that i finish to write a canvas (for example with a button???) I want the server to get the dot array. I have saw Example 2: Shared d…

---

## [Rectangle intersections 3D](https://discourse.processing.org/t/rectangle-intersections-3d/35170)

<div class="topic-metadata">

**Author:** [@bruno.pace](https://discourse.processing.org/u/bruno.pace)\
**Replies:** 0\
**Last updated:** [February 14, 2022, 11:38pm UTC](https://discourse.processing.org/t/rectangle-intersections-3d/35170 "2022-02-14T23:38:11Z")

</div>

Hi there, I am trying to place some rotated rectangles in 3D but the rendering would be much better if the intersection lines between them would be visible. Can anyone help me do that? float x,y,z,a,b ; int num = 300 ;…

---

## [Virus Trojan Detection with Windows Defender Antivirus on core.jar file in Processing](https://discourse.processing.org/t/virus-trojan-detection-with-windows-defender-antivirus-on-core-jar-file-in-processing/1012)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 10\
**Last updated:** [February 14, 2022, 6:55pm UTC](https://discourse.processing.org/t/virus-trojan-detection-with-windows-defender-antivirus-on-core-jar-file-in-processing/1012 "2022-02-14T18:55:15Z")

</div>

Windows Defender Antivirus on Windows 10 is reporting a threat with the core.jar file in Processing 3.3.7 64-bit. I get the same report on both my PCs with recent updates to signature files. No threat reports for 32-bi…

---

## [Detect Mous position inside vertex shape](https://discourse.processing.org/t/detect-mous-position-inside-vertex-shape/35160)

<div class="topic-metadata">

**Author:** [@jaspervb](https://discourse.processing.org/u/jaspervb)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 4:31pm UTC](https://discourse.processing.org/t/detect-mous-position-inside-vertex-shape/35160 "2022-02-14T16:31:34Z")

</div>

Hi There, Is there a method to detect if the mouse position is inside a simple custom vertex shape. Kind regards!

---

## [GUI Rescaling Issues](https://discourse.processing.org/t/gui-rescaling-issues/35150)

<div class="topic-metadata">

**Author:** [@Pcamund](https://discourse.processing.org/u/Pcamund)\
**Replies:** 1\
**Last updated:** [February 13, 2022, 8:09pm UTC](https://discourse.processing.org/t/gui-rescaling-issues/35150 "2022-02-13T20:09:15Z")

</div>

Hello! I’m fairly new with using processing and am attempting to find a way to properly rescale a GUI. I know setResizable() can be used to change the size of the actual window but it won’t change the size of any text or…

---

## [Place Character into Map](https://discourse.processing.org/t/place-character-into-map/35147)

<div class="topic-metadata">

**Author:** [@Kristina](https://discourse.processing.org/u/Kristina)\
**Replies:** 2\
**Last updated:** [February 13, 2022, 7:08pm UTC](https://discourse.processing.org/t/place-character-into-map/35147 "2022-02-13T19:08:49Z")

</div>

Hi, i am working on a Tile based Game at the Moment. I have the characters and Entity’s all added but I don’t know how to place them inside of the map, while making it scroll when my character moves. Could someone pleas…

---

## [P3D not allowing to drag and drop files into window](https://discourse.processing.org/t/p3d-not-allowing-to-drag-and-drop-files-into-window/35134)

<div class="topic-metadata">

**Author:** [@Devostated](https://discourse.processing.org/u/Devostated)\
**Replies:** 3\
**Last updated:** [February 13, 2022, 10:52am UTC](https://discourse.processing.org/t/p3d-not-allowing-to-drag-and-drop-files-into-window/35134 "2022-02-13T10:52:49Z")

</div>

Hello, I’m trying to load and display files via drag and drop into the viewport with the drop library. It works totally fine using images, but my for my project I have to be able to import 3D models. Processings P3D re…

---

## [Applying vertex-shader in Processing](https://discourse.processing.org/t/applying-vertex-shader-in-processing/35131)

<div class="topic-metadata">

**Author:** [@woodwindblues](https://discourse.processing.org/u/woodwindblues)\
**Replies:** 2\
**Last updated:** [February 13, 2022, 10:50am UTC](https://discourse.processing.org/t/applying-vertex-shader-in-processing/35131 "2022-02-13T10:50:47Z")

</div>

Hi, I tried to replicate parts of this (Three.js tutorial) in Processing. I managed to generate a custom 3D Sphere with the vertices spread according to the golden ratio, but I have trouble applying the vertex displaceme…

---

## [mousePressed event throwing "Bad JNI lookup accessibilityHitTest" but program functions anyways](https://discourse.processing.org/t/mousepressed-event-throwing-bad-jni-lookup-accessibilityhittest-but-program-functions-anyways/35139)

<div class="topic-metadata">

**Author:** [@Fishy\_Amphibian](https://discourse.processing.org/u/Fishy_Amphibian)\
**Replies:** 0\
**Last updated:** [February 13, 2022, 5:16am UTC](https://discourse.processing.org/t/mousepressed-event-throwing-bad-jni-lookup-accessibilityhittest-but-program-functions-anyways/35139 "2022-02-13T05:16:27Z")

</div>

Hi, as the title says, my program works completely fine, its a really simple one. However, every time I click on the screen, there is a “Bad JNI lookup accessibilityHitTest” that gets thrown in console. The exception th…

---

## [How does the .exe Compiler work?](https://discourse.processing.org/t/how-does-the-exe-compiler-work/35115)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 1\
**Last updated:** [February 12, 2022, 7:35pm UTC](https://discourse.processing.org/t/how-does-the-exe-compiler-work/35115 "2022-02-12T19:35:45Z")

</div>

I am currently trying to learn how to make an .exe out of a .java/.jar file. Since I’m curious and Launch4j kinda doesn’t work I want to write such a program myself. Since Processing has a simular function I figured it …

---

## [How do you Create Shadows in Processing?](https://discourse.processing.org/t/how-do-you-create-shadows-in-processing/35128)

<div class="topic-metadata">

**Author:** [@rdcmole](https://discourse.processing.org/u/rdcmole)\
**Replies:** 0\
**Last updated:** [February 12, 2022, 5:07pm UTC](https://discourse.processing.org/t/how-do-you-create-shadows-in-processing/35128 "2022-02-12T17:07:41Z")

</div>

I am trying to make my images more realistic by adding the shadows of the rendered shapes. I thought that it may be automatic when adding directional lights, but this does not appear to work. Below is a simple test co…

---

## [Colorshift on saveFrame](https://discourse.processing.org/t/colorshift-on-saveframe/23136)

<div class="topic-metadata">

**Author:** [@onebus](https://discourse.processing.org/u/onebus)\
**Replies:** 12\
**Last updated:** [February 12, 2022, 5:06pm UTC](https://discourse.processing.org/t/colorshift-on-saveframe/23136 "2022-02-12T17:06:26Z")

</div>

As i export (saveFrame) .pngs i notice a pretty ugly colorshift. The colors tend to get dull. It all most looks as the frame saved gets converted to cmyk… save saveFrame: vs screenshot:

---

## [Communicate between Processing and Python (need help)](https://discourse.processing.org/t/communicate-between-processing-and-python-need-help/35124)

<div class="topic-metadata">

**Author:** [@finchle99](https://discourse.processing.org/u/finchle99)\
**Replies:** 0\
**Last updated:** [February 12, 2022, 5:13am UTC](https://discourse.processing.org/t/communicate-between-processing-and-python-need-help/35124 "2022-02-12T05:13:21Z")

</div>

Hi, I’m doing a project using Kinect V1, it detects a tomato in a tree. I’m new in Processing. So I got coordinates data (x, y and z in 3D) of tomato but it switch very fast and was not stable at all. What commands or …

---

## [Opacity background](https://discourse.processing.org/t/opacity-background/35064)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 7\
**Last updated:** [February 12, 2022, 1:47am UTC](https://discourse.processing.org/t/opacity-background/35064 "2022-02-12T01:47:56Z")

</div>

How do I save a png file with no background (trasnaprent)? I need to fill the background with color, than draw something on it, than clear the background, and draw something again, and save it no background. Any idea…

---

## [Why is my sketch showing up blank?](https://discourse.processing.org/t/why-is-my-sketch-showing-up-blank/35114)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 8\
**Last updated:** [February 11, 2022, 9:53pm UTC](https://discourse.processing.org/t/why-is-my-sketch-showing-up-blank/35114 "2022-02-11T21:53:45Z")

</div>

Hello! I’ve been trying to put this code into separate tabs with classes so I can play around with changing the mouseX and mouseY to Kinect. I was wondering what’s going wrong here? Would really appreciate some help on t…

---

## [How do I merge these two sketches? Particles moving away from tracked distance with Kinect (v1)](https://discourse.processing.org/t/how-do-i-merge-these-two-sketches-particles-moving-away-from-tracked-distance-with-kinect-v1/35112)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 0\
**Last updated:** [February 11, 2022, 7:05pm UTC](https://discourse.processing.org/t/how-do-i-merge-these-two-sketches-particles-moving-away-from-tracked-distance-with-kinect-v1/35112 "2022-02-11T19:05:40Z")

</div>

Hello! I have tried and tried and am now close to banging my head on the wall. There is probably something incredibly simple I’m missing, but I just can’t figure this one out on my own. Basically, I am trying to merge t…

---

## [Running l4j-debug produce no console output](https://discourse.processing.org/t/running-l4j-debug-produce-no-console-output/35102)

<div class="topic-metadata">

**Author:** [@ironmyr1](https://discourse.processing.org/u/ironmyr1)\
**Replies:** 3\
**Last updated:** [February 11, 2022, 6:32pm UTC](https://discourse.processing.org/t/running-l4j-debug-produce-no-console-output/35102 "2022-02-11T18:32:58Z")

</div>

I feel like I’m doing something really dumb. Processing will not open for me (it was opening yesterday), and I see 7 posts about the output of l4j-debug. But when I run l4j-debug, I don’t get any console output at all, i…

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

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