# Processing

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

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

**Page:** 125

---

## [I have a problem with coding Java](https://discourse.processing.org/t/i-have-a-problem-with-coding-java/30968)

<div class="topic-metadata">

**Author:** [@christiank79](https://discourse.processing.org/u/christiank79)\
**Replies:** 4\
**Last updated:** [June 30, 2021, 4:15pm UTC](https://discourse.processing.org/t/i-have-a-problem-with-coding-java/30968 "2021-06-30T16:15:30Z")

</div>

Hello, I have a problem with coding I want to save a picture with SVG. This is the code: import processing.serial.\*; String serialPort = "COM4"; // the name of the USB port int imageType = 1; // 0=svg, 1=png, 2=both S…

---

## [Error ProcessingAPP](https://discourse.processing.org/t/error-processingapp/30965)

<div class="topic-metadata">

**Author:** [@salam\_ub](https://discourse.processing.org/u/salam_ub)\
**Replies:** 2\
**Last updated:** [June 30, 2021, 3:16pm UTC](https://discourse.processing.org/t/error-processingapp/30965 "2021-06-30T15:16:08Z")

</div>

Dear all, Once I try Pick Serial and click Connect, I got the error message below : 19:24:16 Serial connection start: detecte serial… 19:24:16 Serial detected: COM3 19:24:16 Serial connection attempt: COM3… java.lan…

---

## [Using texture in PGraphic](https://discourse.processing.org/t/using-texture-in-pgraphic/30967)

<div class="topic-metadata">

**Author:** [@heXYdi](https://discourse.processing.org/u/heXYdi)\
**Replies:** 7\
**Last updated:** [June 30, 2021, 2:04pm UTC](https://discourse.processing.org/t/using-texture-in-pgraphic/30967 "2021-06-30T14:04:43Z")

</div>

Dear people, probably the question is pretty simple and maybe I am just blind. Unfortunately I don’t manage to apply an Image as texture for a PGraphic. In my original code the PGraphic is used in several functions, whi…

---

## [Adding color to a spectrogram and making it round](https://discourse.processing.org/t/adding-color-to-a-spectrogram-and-making-it-round/26138)

<div class="topic-metadata">

**Author:** [@mkok](https://discourse.processing.org/u/mkok)\
**Replies:** 11\
**Last updated:** [June 28, 2021, 12:59pm UTC](https://discourse.processing.org/t/adding-color-to-a-spectrogram-and-making-it-round/26138 "2021-06-28T12:59:40Z")

</div>

Hai, for a schoolproject i want to create a round spectrogram, but I am still kinda new to processing. I created with my teacher this code and I actually want to add a color (or even more) to the spectrogram. It does no…

---

## [ScreenCapture with Robot Class (code not working)](https://discourse.processing.org/t/screencapture-with-robot-class-code-not-working/30551)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 10\
**Last updated:** [June 30, 2021, 10:43am UTC](https://discourse.processing.org/t/screencapture-with-robot-class-code-not-working/30551 "2021-06-30T10:43:35Z")

</div>

i have an irl card that has the rgb value:11, 96, 133. i made a code that, scans the screen for that color so when you have the app camera open it says kaart gevonden (found card in dutch) on the screen. but it is not w…

---

## [How to find a colour on the screen?](https://discourse.processing.org/t/how-to-find-a-colour-on-the-screen/30405)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 7\
**Last updated:** [June 30, 2021, 10:06am UTC](https://discourse.processing.org/t/how-to-find-a-colour-on-the-screen/30405 "2021-06-30T10:06:39Z")

</div>

i have a colour value (11, 96, 133) and i want the program to tell me if there is any colour that is really similar or exactly the same. here is the rest of my code if its useful: PImage screenshot; import java.awt.Robo…

---

## [G4P NullPointerexception (Unknown Source)](https://discourse.processing.org/t/g4p-nullpointerexception-unknown-source/30961)

<div class="topic-metadata">

**Author:** [@TPMoyer](https://discourse.processing.org/u/TPMoyer)\
**Replies:** 3\
**Last updated:** [June 30, 2021, 6:53am UTC](https://discourse.processing.org/t/g4p-nullpointerexception-unknown-source/30961 "2021-06-30T06:53:47Z")

</div>

Have been getting an the worst of all possible worlds, an intermittent error, see image Application is an interface to, and will not run without being connected to, an arduino which has Grbl1.1 loaded. Full code is…

---

## [Printing a image with real inkjet printer](https://discourse.processing.org/t/printing-a-image-with-real-inkjet-printer/29845)

<div class="topic-metadata">

**Author:** [@datacolor](https://discourse.processing.org/u/datacolor)\
**Replies:** 3\
**Last updated:** [June 29, 2021, 10:01pm UTC](https://discourse.processing.org/t/printing-a-image-with-real-inkjet-printer/29845 "2021-06-29T22:01:14Z")

</div>

please format code with \</\> button \* homework policy \* asking questions How print a image with processing??

---

## [Force screen to update](https://discourse.processing.org/t/force-screen-to-update/30954)

<div class="topic-metadata">

**Author:** [@pack.mcmeta](https://discourse.processing.org/u/pack.mcmeta)\
**Replies:** 7\
**Last updated:** [June 29, 2021, 8:30pm UTC](https://discourse.processing.org/t/force-screen-to-update/30954 "2021-06-29T20:30:50Z")

</div>

My question is if I can force processing to update the display window after I call functions like rect() or arc(). So those functions would be called, then I could do something to have them display on screen before draw(…

---

## [How to set default value of a 2D array?](https://discourse.processing.org/t/how-to-set-default-value-of-a-2d-array/27948)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 8\
**Last updated:** [June 29, 2021, 1:18pm UTC](https://discourse.processing.org/t/how-to-set-default-value-of-a-2d-array/27948 "2021-06-29T13:18:15Z")

</div>

Hi! When I used to use 2D fixed arrays (int\[\]\[\], or int\[\] for that matter) it was always a bit annoying setting the values. Like default boolean state in an array is false. Is it possible to set it to something else wit…

---

## [The import javax.crypto cannot be resolved](https://discourse.processing.org/t/the-import-javax-crypto-cannot-be-resolved/30950)

<div class="topic-metadata">

**Author:** [@shuptuu](https://discourse.processing.org/u/shuptuu)\
**Replies:** 2\
**Last updated:** [June 29, 2021, 8:26am UTC](https://discourse.processing.org/t/the-import-javax-crypto-cannot-be-resolved/30950 "2021-06-29T08:26:58Z")

</div>

Hi, I’d like to use the javax.crypto library in Processing, but I have the message “The import javax.crypto cannot be resolved” Is there anybody who already 've been able to use it with Processing? Is there anything sp…

---

## [Background images in draw slows operation, in setup leaves trail, also z-index question](https://discourse.processing.org/t/background-images-in-draw-slows-operation-in-setup-leaves-trail-also-z-index-question/30955)

<div class="topic-metadata">

**Author:** [@silphonix](https://discourse.processing.org/u/silphonix)\
**Replies:** 4\
**Last updated:** [June 29, 2021, 8:10am UTC](https://discourse.processing.org/t/background-images-in-draw-slows-operation-in-setup-leaves-trail-also-z-index-question/30955 "2021-06-29T08:10:34Z")

</div>

Hi, I’m trying to make a representation of frogs jumping out of water. This is my code: ArrayList\<Frogs\> frog = new ArrayList(); PImage pataIzq, pataDer,cuerpo; PImage bgBackline, bgBluerose, bgFloaters, bgGrassnotop, …

---

## [Please help! Processing is showing loadTable is not defined?](https://discourse.processing.org/t/please-help-processing-is-showing-loadtable-is-not-defined/30816)

<div class="topic-metadata">

**Author:** [@ShenpaiSharma](https://discourse.processing.org/u/ShenpaiSharma)\
**Replies:** 11\
**Last updated:** [June 28, 2021, 3:34pm UTC](https://discourse.processing.org/t/please-help-processing-is-showing-loadtable-is-not-defined/30816 "2021-06-28T15:34:14Z")

</div>

Want to import csv data in Processing but it is showing loadTable is not defined… Error: jQuery.Deferred exception: loadTable is not defined ReferenceError: loadTable is not defined at Processing.Processing.setup (eva…

---

## [Displaying randomised coloured squares](https://discourse.processing.org/t/displaying-randomised-coloured-squares/28824)

<div class="topic-metadata">

**Author:** [@hwahwa](https://discourse.processing.org/u/hwahwa)\
**Replies:** 3\
**Last updated:** [June 15, 2021, 1:15pm UTC](https://discourse.processing.org/t/displaying-randomised-coloured-squares/28824 "2021-06-15T13:15:09Z")

</div>

Hello, I’m trying to display randomised coloured squares but the issue is, when I use my code outside of a void draw() function, it works fine, but when I put it in a void draw() function, the colours of the squares cont…

---

## [Does anyone know what functions in kinectPV2 are similar to getRegisteredImage()?](https://discourse.processing.org/t/does-anyone-know-what-functions-in-kinectpv2-are-similar-to-getregisteredimage/30900)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 2\
**Last updated:** [June 28, 2021, 4:14am UTC](https://discourse.processing.org/t/does-anyone-know-what-functions-in-kinectpv2-are-similar-to-getregisteredimage/30900 "2021-06-28T04:14:46Z")

</div>

Hi everyone. I use depthtocolor but the effect is not so good!I feel that the RGB value above does not correspond well to the depth value.

---

## [pushMatrix() NullPointerException](https://discourse.processing.org/t/pushmatrix-nullpointerexception/30929)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 5\
**Last updated:** [June 27, 2021, 1:49pm UTC](https://discourse.processing.org/t/pushmatrix-nullpointerexception/30929 "2021-06-27T13:49:29Z")

</div>

Hello everyone, I am writing a game using processing in Eclipse, but I get a strange NullPointerException error when using pushMatrix in two of my classes. Even taking out the pushMatrix() and popMatrix() doesn’t work, c…

---

## [I need help with the color change of the dots in the image I created](https://discourse.processing.org/t/i-need-help-with-the-color-change-of-the-dots-in-the-image-i-created/30906)

<div class="topic-metadata">

**Author:** [@process](https://discourse.processing.org/u/process)\
**Replies:** 9\
**Last updated:** [June 27, 2021, 10:32pm UTC](https://discourse.processing.org/t/i-need-help-with-the-color-change-of-the-dots-in-the-image-i-created/30906 "2021-06-27T22:32:15Z")

</div>

I need help with the color change of the dots in the image I created I added a colorwheel, I create a point with mousepress and drop it to the ground. The color I choose from Colorwheel changes the color of the dots on …

---

## [How can i send Raw Ethernet II frame?](https://discourse.processing.org/t/how-can-i-send-raw-ethernet-ii-frame/30928)

<div class="topic-metadata">

**Author:** [@particlerain](https://discourse.processing.org/u/particlerain)\
**Replies:** 1\
**Last updated:** [June 26, 2021, 7:42pm UTC](https://discourse.processing.org/t/how-can-i-send-raw-ethernet-ii-frame/30928 "2021-06-26T19:42:31Z")

</div>

Is there a possibility or even library where i can open a raw ip socket and send the pixel frame as raw ethernet data through the network in Processing? If not, how can i export the framebuffer to a “c” linux code where…

---

## [Using Vectors to Make a Bullet shoot to where I click with my mouse](https://discourse.processing.org/t/using-vectors-to-make-a-bullet-shoot-to-where-i-click-with-my-mouse/30915)

<div class="topic-metadata">

**Author:** [@Hunter9649](https://discourse.processing.org/u/Hunter9649)\
**Replies:** 2\
**Last updated:** [June 26, 2021, 7:51am UTC](https://discourse.processing.org/t/using-vectors-to-make-a-bullet-shoot-to-where-i-click-with-my-mouse/30915 "2021-06-26T07:51:17Z")

</div>

So I have been trying to make a game like a shooter similar to diep.io but its like a zombie thing. I could not figure out vectors because I’m too small brain. Anyone wanna help me. Here is the code I have so far. \<clas…

---

## [Voxel game mesh code](https://discourse.processing.org/t/voxel-game-mesh-code/30895)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 4\
**Last updated:** [June 26, 2021, 3:10am UTC](https://discourse.processing.org/t/voxel-game-mesh-code/30895 "2021-06-26T03:10:30Z")

</div>

Hello everyone, I am trying to code my first voxel game. So far, I have the 3d camera and cubes loading to the screen. However, when I try to expand the terrain, there is a lot of lag because Processing has to render a l…

---

## [One sided vertices in 3d graphics](https://discourse.processing.org/t/one-sided-vertices-in-3d-graphics/30922)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 0\
**Last updated:** [June 26, 2021, 3:04am UTC](https://discourse.processing.org/t/one-sided-vertices-in-3d-graphics/30922 "2021-06-26T03:04:02Z")

</div>

Hello everyone, I recently starting coding a voxel game in processing. However, there is a lot of lag whenever rendering the cubes, say 1000 of them, because cube faces are being drawn that the player cannot see (the cub…

---

## [Acceleration and processing 3.0](https://discourse.processing.org/t/acceleration-and-processing-3-0/30907)

<div class="topic-metadata">

**Author:** [@Halfrican911](https://discourse.processing.org/u/Halfrican911)\
**Replies:** 3\
**Last updated:** [June 25, 2021, 7:42pm UTC](https://discourse.processing.org/t/acceleration-and-processing-3-0/30907 "2021-06-25T19:42:24Z")

</div>

Hello everyone I’m trying to figure out how to get the processing ide to understand when my sensors sees acceleration in 1 m/s to the left on the x axis that is moves left in processing I have the roll pitch and yaw I ha…

---

## [Random vertex on diagonal line](https://discourse.processing.org/t/random-vertex-on-diagonal-line/30857)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 5\
**Last updated:** [June 25, 2021, 4:14pm UTC](https://discourse.processing.org/t/random-vertex-on-diagonal-line/30857 "2021-06-25T16:14:29Z")

</div>

Hi there! I am trying to do a design using random vertex, as you can see on the picture. I want to take a random point between X1 and X2, that is easy to do, but I don’t know what to do with y, because it has to be on…

---

## [HELP Want to redraw an image using lines but the graphics won't show](https://discourse.processing.org/t/help-want-to-redraw-an-image-using-lines-but-the-graphics-wont-show/30643)

<div class="topic-metadata">

**Author:** [@goblincaptain](https://discourse.processing.org/u/goblincaptain)\
**Replies:** 20\
**Last updated:** [June 11, 2021, 11:35am UTC](https://discourse.processing.org/t/help-want-to-redraw-an-image-using-lines-but-the-graphics-wont-show/30643 "2021-06-11T11:35:07Z")

</div>

My concept is to load an image and scan through all its pixels. For every pixel, find another pixel in the whole image that has the biggest color difference. Once the program detects the best pair(biggest difference), it…

---

## [G4P gui builder latest version doesn't work with older sketch](https://discourse.processing.org/t/g4p-gui-builder-latest-version-doesnt-work-with-older-sketch/30893)

<div class="topic-metadata">

**Author:** [@GvB](https://discourse.processing.org/u/GvB)\
**Replies:** 5\
**Last updated:** [June 25, 2021, 12:54pm UTC](https://discourse.processing.org/t/g4p-gui-builder-latest-version-doesnt-work-with-older-sketch/30893 "2021-06-25T12:54:16Z")

</div>

Updating an older complex sketch I found out that the latest G4P gui builder is not compatible anymore. I installed an earlier version of the tool which works for now. Question is: is there some way to convert the ‘olde…

---

## [I want the PVector after rotate](https://discourse.processing.org/t/i-want-the-pvector-after-rotate/30744)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 6\
**Last updated:** [June 25, 2021, 10:55am UTC](https://discourse.processing.org/t/i-want-the-pvector-after-rotate/30744 "2021-06-25T10:55:24Z")

</div>

PVector v = new PVector(); void setup() { size(800, 800, P3D); } void draw() { background(255); push(); translate(0,0,0); v = new PVector(1, 10, 1); rotateZ(frameCount); pop(); println(v); } i …

---

## [Is there a way to get runtime state for a new thread()](https://discourse.processing.org/t/is-there-a-way-to-get-runtime-state-for-a-new-thread/30840)

<div class="topic-metadata">

**Author:** [@gerrikoio](https://discourse.processing.org/u/gerrikoio)\
**Replies:** 4\
**Last updated:** [June 24, 2021, 8:55pm UTC](https://discourse.processing.org/t/is-there-a-way-to-get-runtime-state-for-a-new-thread/30840 "2021-06-24T20:55:04Z")

</div>

I am reading a byte data stream from a serial port. This data stream is from a Bluetooth LE (BLE) Scanner application, so when it’s detecting 10 more BLE devices, and their advertising data packets, we looking at a good …

---

## [Processing (PDE) ant build Error](https://discourse.processing.org/t/processing-pde-ant-build-error/30890)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 0\
**Last updated:** [June 24, 2021, 4:33pm UTC](https://discourse.processing.org/t/processing-pde-ant-build-error/30890 "2021-06-24T16:33:11Z")

</div>

Hey I need some help. I want to change some code in the Processing (PDE). That’s why I downloaded the Github library. Then I copied the “app” folder to the desktop and opened it in eclipse. There were a few bugs as st…

---

## [Is there an associated timeout function when using Serial Buffer](https://discourse.processing.org/t/is-there-an-associated-timeout-function-when-using-serial-buffer/30886)

<div class="topic-metadata">

**Author:** [@gerrikoio](https://discourse.processing.org/u/gerrikoio)\
**Replies:** 2\
**Last updated:** [June 24, 2021, 3:19pm UTC](https://discourse.processing.org/t/is-there-an-associated-timeout-function-when-using-serial-buffer/30886 "2021-06-24T15:19:01Z")

</div>

I have been testing the Serial library buffer() function and it works very well with Serial Event. But I am left wondering what happens if the Serial port is somehow disrupted. Is there a timeout parameter somewhere tha…

---

## [Efficient File Loading / Memory Usage Tips?](https://discourse.processing.org/t/efficient-file-loading-memory-usage-tips/30859)

<div class="topic-metadata">

**Author:** [@CosmicCrowMC](https://discourse.processing.org/u/CosmicCrowMC)\
**Replies:** 4\
**Last updated:** [June 24, 2021, 11:47am UTC](https://discourse.processing.org/t/efficient-file-loading-memory-usage-tips/30859 "2021-06-24T11:47:44Z")

</div>

Hello there! I’ve developed quite a large game with Processing, and I’m wanting to know the best way to load a large number of files (200+). I’ve tried loading them all with a thread called in setup(), but I’m concerned …

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

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