# Processing

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

---

## [Unable to launch Processing on Win 10 Pro 64 bit](https://discourse.processing.org/t/unable-to-launch-processing-on-win-10-pro-64-bit/8336)

<div class="topic-metadata">

**Author:** [@hificannon](https://discourse.processing.org/u/hificannon)\
**Replies:** 2\
**Last updated:** [February 11, 2022, 6:38pm UTC](https://discourse.processing.org/t/unable-to-launch-processing-on-win-10-pro-64-bit/8336 "2022-02-11T18:38:19Z")

</div>

Hello, When I attempt to launch Processing on Windows 10 Pro 64 bit the launch screen briefly appears and then closes. Processing has not written any preferences to my user folder. I’ve run the program from the Deskto…

---

## [Processing 3.5.4 crashing on startup](https://discourse.processing.org/t/processing-3-5-4-crashing-on-startup/20518)

<div class="topic-metadata">

**Author:** [@twistedpair](https://discourse.processing.org/u/twistedpair)\
**Replies:** 4\
**Last updated:** [February 11, 2022, 6:37pm UTC](https://discourse.processing.org/t/processing-3-5-4-crashing-on-startup/20518 "2022-02-11T18:37:45Z")

</div>

I am trying to open up the software in Windows 10, but it shows the splash screen for a couple seconds and closes down. I tried updating Java and redownloading Processing, which didn’t help. I went into the Appdata/roa…

---

## [Call the Java Compiler from Processing](https://discourse.processing.org/t/call-the-java-compiler-from-processing/35076)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 4\
**Last updated:** [February 11, 2022, 3:30pm UTC](https://discourse.processing.org/t/call-the-java-compiler-from-processing/35076 "2022-02-11T15:30:08Z")

</div>

I’m currently writing a library for a few friends of mine who use Processing and it would be cool if I were to include a possibiity to compile and run Java-code. I used a code I already used for another project. However…

---

## [Clear PGraphic after image()](https://discourse.processing.org/t/clear-pgraphic-after-image/35074)

<div class="topic-metadata">

**Author:** [@Omri](https://discourse.processing.org/u/Omri)\
**Replies:** 2\
**Last updated:** [February 11, 2022, 11:04am UTC](https://discourse.processing.org/t/clear-pgraphic-after-image/35074 "2022-02-11T11:04:32Z")

</div>

Hey, I have some problem I can’t figure out: I want to draw a circle on a screen by the mouseX mouseY cords (I want the draw to stay on the screen so I refresh the background un the draw function) , and above it I’m try…

---

## [Client socket nonsense](https://discourse.processing.org/t/client-socket-nonsense/33635)

<div class="topic-metadata">

**Author:** [@joepekoe](https://discourse.processing.org/u/joepekoe)\
**Replies:** 1\
**Last updated:** [February 11, 2022, 10:37am UTC](https://discourse.processing.org/t/client-socket-nonsense/33635 "2022-02-11T10:37:09Z")

</div>

Processing version: 3.5.4 Client got end-of-stream. Client SocketException: Socket closed Socket exception handling in Processing has proven to be nothing less than frustrating and an annoyance. An electronic chase a…

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

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