# Processing

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

---

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

---

## [How to do other sides](https://discourse.processing.org/t/how-to-do-other-sides/30878)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 0\
**Last updated:** [June 23, 2021, 7:18pm UTC](https://discourse.processing.org/t/how-to-do-other-sides/30878 "2021-06-23T19:18:01Z")

</div>

i cant figure out how to use this code in other directions. this line of code checks if something on its west side is in range and then it presses z. this works but i cant seem to figure out how to do it for its northwe…

---

## [Loading multiple images with a wildcard?](https://discourse.processing.org/t/loading-multiple-images-with-a-wildcard/30866)

<div class="topic-metadata">

**Author:** [@Mat100](https://discourse.processing.org/u/Mat100)\
**Replies:** 6\
**Last updated:** [June 23, 2021, 2:11pm UTC](https://discourse.processing.org/t/loading-multiple-images-with-a-wildcard/30866 "2021-06-23T14:11:14Z")

</div>

Hi, How do I load images numbered 0000 - 0100? I have a series of images "frame-0000.png to “frame-0100.png” If I use this code… for (int i = 0; i \< images.length; i ++ ) { images\[i\] = loadImage( "frame-000" + i …

---

## [Illegal modifier for the local class Notepad; only abstract or final is permitted](https://discourse.processing.org/t/illegal-modifier-for-the-local-class-notepad-only-abstract-or-final-is-permitted/30831)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 6:34am UTC](https://discourse.processing.org/t/illegal-modifier-for-the-local-class-notepad-only-abstract-or-final-is-permitted/30831 "2021-06-23T06:34:33Z")

</div>

why does my code return the error: Illegal modifier for the local class Notepad; only abstract or final is permitted this is the code: \`int x=1; int y=1; color ring1 = color(0,0,0); color ring2 = color(0,0,0); color r…

---

## [Rectangle button](https://discourse.processing.org/t/rectangle-button/30846)

<div class="topic-metadata">

**Author:** [@PARINAZ129](https://discourse.processing.org/u/PARINAZ129)\
**Replies:** 3\
**Last updated:** [June 23, 2021, 1:38am UTC](https://discourse.processing.org/t/rectangle-button/30846 "2021-06-23T01:38:22Z")

</div>

Dear As a beginner, I wanted to create 4 buttons that show different colors when being pressed, however, when I press each of them they don’t work individually. Additionally, I have a serious problem with writing distan…

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

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