# Processing

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

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

**Page:** 72

---

## [Programmatically step through every permutation of a 4x4 black and white grid](https://discourse.processing.org/t/programmatically-step-through-every-permutation-of-a-4x4-black-and-white-grid/38133)

<div class="topic-metadata">

**Author:** [@heyneff](https://discourse.processing.org/u/heyneff)\
**Replies:** 8\
**Last updated:** [August 2, 2022, 8:41am UTC](https://discourse.processing.org/t/programmatically-step-through-every-permutation-of-a-4x4-black-and-white-grid/38133 "2022-08-02T08:41:21Z")

</div>

I’ve been getting refamiliarized with processing after a long stint away and have hit the limits of combining tutorials and my foggy memory. My goal is: 1) create a 4 x 4 grid 2) Programmatically step through all 16k+ b…

---

## [Problem with lines/curves in P3D](https://discourse.processing.org/t/problem-with-lines-curves-in-p3d/38151)

<div class="topic-metadata">

**Author:** [@arTwirr](https://discourse.processing.org/u/arTwirr)\
**Replies:** 5\
**Last updated:** [August 4, 2022, 2:58pm UTC](https://discourse.processing.org/t/problem-with-lines-curves-in-p3d/38151 "2022-08-04T14:58:32Z")

</div>

Hi, I started using processing a few days ago and encountered a problem. In order to use Spout, I had to change renderer to P3D, but P3D lines/curves work a bit differently than in default renderer. There happens a bug …

---

## [Searching the internet](https://discourse.processing.org/t/searching-the-internet/38219)

<div class="topic-metadata">

**Author:** [@TheGreatTardonio](https://discourse.processing.org/u/TheGreatTardonio)\
**Replies:** 0\
**Last updated:** [August 4, 2022, 12:15pm UTC](https://discourse.processing.org/t/searching-the-internet/38219 "2022-08-04T12:15:38Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Let’s say I’m writing a program and I want it to be able to search the internet, for example I want it to search google with “What’s X lightyear…

---

## [Change shape when changing directions](https://discourse.processing.org/t/change-shape-when-changing-directions/34315)

<div class="topic-metadata">

**Author:** [@marina\_kdot](https://discourse.processing.org/u/marina_kdot)\
**Replies:** 7\
**Last updated:** [August 4, 2022, 8:27am UTC](https://discourse.processing.org/t/change-shape-when-changing-directions/34315 "2022-08-04T08:27:24Z")

</div>

I am working through “Coding Art” and there is an extra task I am not able to solve until now. I am really a beginner and this task seems quite hard without coding experience at all. I have Particles moving in a circle …

---

## [Why does the frameRate drop so much when I load about 100 pictures into the program](https://discourse.processing.org/t/why-does-the-framerate-drop-so-much-when-i-load-about-100-pictures-into-the-program/38196)

<div class="topic-metadata">

**Author:** [@urlxd](https://discourse.processing.org/u/urlxd)\
**Replies:** 8\
**Last updated:** [August 3, 2022, 5:28am UTC](https://discourse.processing.org/t/why-does-the-framerate-drop-so-much-when-i-load-about-100-pictures-into-the-program/38196 "2022-08-03T05:28:04Z")

</div>

hello, i would like to know. why does the frameRate drop so much when I load about 100 pictures into the program. And how to fix it. Pictures from one color, with squares there is no such thing. :neutral\_face:

---

## [How to fix ClassCastException error in Processing?](https://discourse.processing.org/t/how-to-fix-classcastexception-error-in-processing/38208)

<div class="topic-metadata">

**Author:** [@michele\_rinaldi](https://discourse.processing.org/u/michele_rinaldi)\
**Replies:** 1\
**Last updated:** [August 3, 2022, 2:24pm UTC](https://discourse.processing.org/t/how-to-fix-classcastexception-error-in-processing/38208 "2022-08-03T14:24:35Z")

</div>

Hi! I’m working on a project that involves two PCs that simultaneously share and exchange the webcam source and send it, modified, to the other PC. The script I’m relying on I found at https://github.com/torb-xyz/proce…

---

## [Creating variation in grid with random();](https://discourse.processing.org/t/creating-variation-in-grid-with-random/38175)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 8\
**Last updated:** [August 3, 2022, 11:06am UTC](https://discourse.processing.org/t/creating-variation-in-grid-with-random/38175 "2022-08-03T11:06:04Z")

</div>

Hi! I’m wondering how I can go about creating a grid like the example in the screenshot below. I’m interested in morphing the grid with randomness. How do I go about designing varying cells and joining them together as…

---

## [Brick Game/Interactions](https://discourse.processing.org/t/brick-game-interactions/38198)

<div class="topic-metadata">

**Author:** [@searchingforananswer](https://discourse.processing.org/u/searchingforananswer)\
**Replies:** 3\
**Last updated:** [August 3, 2022, 8:33am UTC](https://discourse.processing.org/t/brick-game-interactions/38198 "2022-08-03T08:33:21Z")

</div>

Hello everyone! I’m new at coding and processing. I’m looking for an urgent answer for a problem occured while i’m trying to do a Bricker Game. I’m at the phase where i try to the interactions with the ball and the paddl…

---

## [Image Division Raster](https://discourse.processing.org/t/image-division-raster/38146)

<div class="topic-metadata">

**Author:** [@jeykech](https://discourse.processing.org/u/jeykech)\
**Replies:** 4\
**Last updated:** [August 2, 2022, 3:02pm UTC](https://discourse.processing.org/t/image-division-raster/38146 "2022-08-02T15:02:18Z")

</div>

hello guys, I am interested in creating a similar effect like this: I am interested in recreating this irregular grid effect that follows the brightness of different area…

---

## [How to access object by using it's name in string format?](https://discourse.processing.org/t/how-to-access-object-by-using-its-name-in-string-format/38182)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 9\
**Last updated:** [August 2, 2022, 2:46pm UTC](https://discourse.processing.org/t/how-to-access-object-by-using-its-name-in-string-format/38182 "2022-08-02T14:46:12Z")

</div>

Hello, In the following example: I want to get the p2.y using str. I searched a lot but couldn’t find how to do this. (I am new to java) Please Help. void setup(){ cord p1 = new cord(2,3); cord p2 = new cord(77,88)…

---

## [How can I change Image background with mouse click?](https://discourse.processing.org/t/how-can-i-change-image-background-with-mouse-click/38189)

<div class="topic-metadata">

**Author:** [@steven](https://discourse.processing.org/u/steven)\
**Replies:** 6\
**Last updated:** [August 2, 2022, 1:04pm UTC](https://discourse.processing.org/t/how-can-i-change-image-background-with-mouse-click/38189 "2022-08-02T13:04:33Z")

</div>

I just want to make a 2D rpg games with the background of the game can change in different stages of the game. Please send help:((

---

## [Changing image background with given specific time](https://discourse.processing.org/t/changing-image-background-with-given-specific-time/38186)

<div class="topic-metadata">

**Author:** [@steven](https://discourse.processing.org/u/steven)\
**Replies:** 2\
**Last updated:** [August 1, 2022, 2:51pm UTC](https://discourse.processing.org/t/changing-image-background-with-given-specific-time/38186 "2022-08-01T14:51:56Z")

</div>

I’m 3rd year college student and I need a help about changing the image background with given specific time.

---

## [How to translate an object in Z - but keep its screen X and Y pos?](https://discourse.processing.org/t/how-to-translate-an-object-in-z-but-keep-its-screen-x-and-y-pos/38171)

<div class="topic-metadata">

**Author:** [@zenglenn](https://discourse.processing.org/u/zenglenn)\
**Replies:** 9\
**Last updated:** [July 31, 2022, 9:43pm UTC](https://discourse.processing.org/t/how-to-translate-an-object-in-z-but-keep-its-screen-x-and-y-pos/38171 "2022-07-31T21:43:51Z")

</div>

How would I move a 3d point away / toward the camera - but have its position locked on a particular screen x y coordinate?

---

## [Clip function crashes live html canvas (unresolved)](https://discourse.processing.org/t/clip-function-crashes-live-html-canvas-unresolved/38150)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 8\
**Last updated:** [July 31, 2022, 8:29am UTC](https://discourse.processing.org/t/clip-function-crashes-live-html-canvas-unresolved/38150 "2022-07-31T08:29:14Z")

</div>

not sure quite how to even phrase this question but i’m trying to use the clip function and it works fine on local processing, but in my live html canvas (with processing.js) invoking it in any capacity, even just using …

---

## [Does Processing work well in Mac M1](https://discourse.processing.org/t/does-processing-work-well-in-mac-m1/29678)

<div class="topic-metadata">

**Author:** [@Vrishy](https://discourse.processing.org/u/Vrishy)\
**Replies:** 10\
**Last updated:** [July 31, 2022, 2:02am UTC](https://discourse.processing.org/t/does-processing-work-well-in-mac-m1/29678 "2022-07-31T02:02:34Z")

</div>

Does Processing work well on Mac book with M1 processors? Any known issues?

---

## [No library found for toxi.processing error](https://discourse.processing.org/t/no-library-found-for-toxi-processing-error/38113)

<div class="topic-metadata">

**Author:** [@Lightwaveguy](https://discourse.processing.org/u/Lightwaveguy)\
**Replies:** 1\
**Last updated:** [July 31, 2022, 1:28am UTC](https://discourse.processing.org/t/no-library-found-for-toxi-processing-error/38113 "2022-07-31T01:28:45Z")

</div>

I am trying to use a program in Processing to visualize the output from the MPU6050 gyro chip. This program is included with the examples in Arduino. I was originaly getting both a ,no library found for toxi.geom and a n…

---

## [Faster way to draw part of an image?](https://discourse.processing.org/t/faster-way-to-draw-part-of-an-image/38140)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 6\
**Last updated:** [July 30, 2022, 3:27pm UTC](https://discourse.processing.org/t/faster-way-to-draw-part-of-an-image/38140 "2022-07-30T15:27:49Z")

</div>

i need to be able to draw the top part of an image, here’s what i have void drawImageSplice(PGraphics pg,PImage img,int x,int y,int w,int h,float cut){ int yp = round(h\*cut); if(yp\>0){ PGraphics buffer = createG…

---

## [NullPointerException returned](https://discourse.processing.org/t/nullpointerexception-returned/31818)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 6\
**Last updated:** [August 21, 2021, 1:45pm UTC](https://discourse.processing.org/t/nullpointerexception-returned/31818 "2021-08-21T13:45:06Z")

</div>

why does the following code return NullPointerException? int fistleft=1; int fistright=2; int clapleft=3; int clapright=4; int choice1; int choice2; int\[\] correct; int i=0; void draw(){ //zet choice1 en choice2 naa…

---

## [Saving partial display for showing and hiding](https://discourse.processing.org/t/saving-partial-display-for-showing-and-hiding/38161)

<div class="topic-metadata">

**Author:** [@demir](https://discourse.processing.org/u/demir)\
**Replies:** 0\
**Last updated:** [July 30, 2022, 9:18am UTC](https://discourse.processing.org/t/saving-partial-display-for-showing-and-hiding/38161 "2022-07-30T09:18:12Z")

</div>

I have a main window and 6 extra windows which are opened from the main window via a menu. I can save and restore a partial view in the main window. How can I do the same with the extra windows? I have established 6 P…

---

## [Image download: java certificate error](https://discourse.processing.org/t/image-download-java-certificate-error/36901)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 8\
**Last updated:** [July 29, 2022, 9:07pm UTC](https://discourse.processing.org/t/image-download-java-certificate-error/36901 "2022-07-29T21:07:56Z")

</div>

Hello everyone! I have some code that downloads images from external servers, and it has always worked great… until now. It appears that there is an issue with their java certificate and I’ve been trying find a work aro…

---

## [Make Arduino and PIR motion sensor work in Processing code with Boolean expression](https://discourse.processing.org/t/make-arduino-and-pir-motion-sensor-work-in-processing-code-with-boolean-expression/23978)

<div class="topic-metadata">

**Author:** [@Jonathan\_2](https://discourse.processing.org/u/Jonathan_2)\
**Replies:** 10\
**Last updated:** [July 28, 2022, 10:18am UTC](https://discourse.processing.org/t/make-arduino-and-pir-motion-sensor-work-in-processing-code-with-boolean-expression/23978 "2022-07-28T10:18:01Z")

</div>

Hey! I am working on a code, that I will use as a part of an artwork. Basically the code is taking a random word from a text file and putting it on the screen every time the mouse is clicked. This works as you see with …

---

## [For Loop in Processing (snake game)](https://discourse.processing.org/t/for-loop-in-processing-snake-game/38059)

<div class="topic-metadata">

**Author:** [@ikay](https://discourse.processing.org/u/ikay)\
**Replies:** 6\
**Last updated:** [July 28, 2022, 6:55am UTC](https://discourse.processing.org/t/for-loop-in-processing-snake-game/38059 "2022-07-28T06:55:43Z")

</div>

hey i have a code and i’m trying to create a loop to draw 3 ellipses int SNAKE\_SIZE =20,SNAKE\_LENGTH=4; void setup(){ size(500,500); } //ellipse(250,250,SNAKE\_SIZE,SNAKE\_SIZE); //ellipse(250,270,SNAKE\_SIZE,SNAKE\_SI…

---

## [macOS Monterey won't reconnect to HC-05 Bluetooth without removing/re-pairing each time](https://discourse.processing.org/t/macos-monterey-wont-reconnect-to-hc-05-bluetooth-without-removing-re-pairing-each-time/38119)

<div class="topic-metadata">

**Author:** [@ctiptonk](https://discourse.processing.org/u/ctiptonk)\
**Replies:** 0\
**Last updated:** [July 27, 2022, 11:09am UTC](https://discourse.processing.org/t/macos-monterey-wont-reconnect-to-hc-05-bluetooth-without-removing-re-pairing-each-time/38119 "2022-07-27T11:09:15Z")

</div>

I’m working on remote operated camera pan/tilt device that uses a HC-05 Bluetooth module to connect a GUI written in Processing and running on a Mac to an Arduino. Everything works great when I first pair the HC-05, but …

---

## [Best and fastest way to access objects in real-time for interaction with incoming messages](https://discourse.processing.org/t/best-and-fastest-way-to-access-objects-in-real-time-for-interaction-with-incoming-messages/38107)

<div class="topic-metadata">

**Author:** [@fedpep](https://discourse.processing.org/u/fedpep)\
**Replies:** 12\
**Last updated:** [July 26, 2022, 1:24pm UTC](https://discourse.processing.org/t/best-and-fastest-way-to-access-objects-in-real-time-for-interaction-with-incoming-messages/38107 "2022-07-26T13:24:39Z")

</div>

Hi everybody, I recently started working on a project I had had in mind for quite some time. I have reached a good point but now that I have to integrate the interactive part, I have a doubt. This is the idea: I’m creat…

---

## [JOGL Error when running Processing 4.0b8 on external IDE with Apple Silicon](https://discourse.processing.org/t/jogl-error-when-running-processing-4-0b8-on-external-ide-with-apple-silicon/38087)

<div class="topic-metadata">

**Author:** [@shishironeal](https://discourse.processing.org/u/shishironeal)\
**Replies:** 4\
**Last updated:** [July 26, 2022, 7:44am UTC](https://discourse.processing.org/t/jogl-error-when-running-processing-4-0b8-on-external-ide-with-apple-silicon/38087 "2022-07-26T07:44:56Z")

</div>

I originally had a repo for Windows that was working perfectly and I assumed that all I had to do was clone the repo and change the x86 jars to ARM, and that worked for Processing but IntelliJ isn’t recognizing Jogamp. …

---

## [“Processing.app” can’t be opened because Apple cannot check it for malicious software](https://discourse.processing.org/t/processing-app-can-t-be-opened-because-apple-cannot-check-it-for-malicious-software/18967)

<div class="topic-metadata">

**Author:** [@sangshen](https://discourse.processing.org/u/sangshen)\
**Replies:** 4\
**Last updated:** [July 25, 2022, 5:12pm UTC](https://discourse.processing.org/t/processing-app-can-t-be-opened-because-apple-cannot-check-it-for-malicious-software/18967 "2022-07-25T17:12:24Z")

</div>

Today I downloaded the newest version , but when I open the processing.app , it showed a window like this . " “Processing.app” can’t be opened because Apple cannot check it for malicious software." I feel puzzled . Di…

---

## [How to move an object created on a loop](https://discourse.processing.org/t/how-to-move-an-object-created-on-a-loop/38034)

<div class="topic-metadata">

**Author:** [@Ghost2](https://discourse.processing.org/u/Ghost2)\
**Replies:** 7\
**Last updated:** [July 25, 2022, 4:40pm UTC](https://discourse.processing.org/t/how-to-move-an-object-created-on-a-loop/38034 "2022-07-25T16:40:49Z")

</div>

I have this piece of code where i am trying to move an object i.e three dots created by a for loop and i want to move the dots when mouse is pressed eg. Move the dots like dot++.If anyone can help me it would be great\\ …

---

## [Change the appearance of Radio Buttons in ControlP5](https://discourse.processing.org/t/change-the-appearance-of-radio-buttons-in-controlp5/38045)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 10\
**Last updated:** [July 25, 2022, 1:02am UTC](https://discourse.processing.org/t/change-the-appearance-of-radio-buttons-in-controlp5/38045 "2022-07-25T01:02:32Z")

</div>

By default Radio Buttons in ControlP5 are squares. (shown in following figure) In my opinion, they seems to be littile unintiutive for a new user. Is it possible to change their appearance to conventional type radio…

---

## [Try to program a pointless texbox](https://discourse.processing.org/t/try-to-program-a-pointless-texbox/37921)

<div class="topic-metadata">

**Author:** [@lousshe](https://discourse.processing.org/u/lousshe)\
**Replies:** 4\
**Last updated:** [July 24, 2022, 2:21pm UTC](https://discourse.processing.org/t/try-to-program-a-pointless-texbox/37921 "2022-07-24T14:21:29Z")

</div>

Hello. this is a small mini project. I am already so far that it is a normal interpretation of a text box with mouse tracking. Now I try to modify the text if you move the red button around (textbox size). By modify…

---

## [Cannot understand PImage](https://discourse.processing.org/t/cannot-understand-pimage/38070)

<div class="topic-metadata">

**Author:** [@MSousa](https://discourse.processing.org/u/MSousa)\
**Replies:** 1\
**Last updated:** [July 24, 2022, 1:40pm UTC](https://discourse.processing.org/t/cannot-understand-pimage/38070 "2022-07-24T13:40:27Z")

</div>

//Pimage test /\* Trying to undersand Pimage created a Pimage object named img the idea is to acquire data from the Teensy microcontroller and fill the img area. line 27 fills the image with a stored jpg image line …

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

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