# Processing

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

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

**Page:** 40

---

## [Projection Mapping](https://discourse.processing.org/t/projection-mapping/41910)

<div class="topic-metadata">

**Author:** [@Christian](https://discourse.processing.org/u/Christian)\
**Replies:** 5\
**Last updated:** [May 23, 2023, 8:57am UTC](https://discourse.processing.org/t/projection-mapping/41910 "2023-05-23T08:57:00Z")

</div>

Hello! I was wondering if any of you know a good way to do projection mapping with my Processing sketch. Many years ago I have used the Syphon library in combination with MadMapper, but if possible I would like to use a…

---

## [Is there gonna be a Vulkan Library sometimes?](https://discourse.processing.org/t/is-there-gonna-be-a-vulkan-library-sometimes/42035)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 1\
**Last updated:** [May 22, 2023, 9:54am UTC](https://discourse.processing.org/t/is-there-gonna-be-a-vulkan-library-sometimes/42035 "2023-05-22T09:54:18Z")

</div>

Im just wondering if Processing will eventually support Vulkan for rendering, with Pgraphics for vulkan and everything.

---

## [\[JAVA\] CRC16 calculation is not working properly](https://discourse.processing.org/t/java-crc16-calculation-is-not-working-properly/42036)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 1\
**Last updated:** [May 20, 2023, 10:54am UTC](https://discourse.processing.org/t/java-crc16-calculation-is-not-working-properly/42036 "2023-05-20T10:54:21Z")

</div>

\[JAVA\] CRC16 calculation is not working properly. ref-url link-1 : Modbus CRC16 ref-url link-2 : 내 보조 기억 장치!: Java CRC16 Modbus CRC16Utils crcs; CRC16 crc16s; void setup(){ byte\[\] b = {0x7E, 0x01, 0x07}; int\[…

---

## [I have a project where I have to make an interactive graphics program](https://discourse.processing.org/t/i-have-a-project-where-i-have-to-make-an-interactive-graphics-program/42011)

<div class="topic-metadata">

**Author:** [@Deezer242](https://discourse.processing.org/u/Deezer242)\
**Replies:** 6\
**Last updated:** [May 19, 2023, 10:18am UTC](https://discourse.processing.org/t/i-have-a-project-where-i-have-to-make-an-interactive-graphics-program/42011 "2023-05-19T10:18:57Z")

</div>

I am trying to create shapes that can be placed with key binds and then saved in an ArrayList. The hardest thing I’m having trouble with right now is how to edit the shapes’ size and location after I have placed them. I …

---

## [Unsatisfied Link Error with OpenKinect on macOS Ventura](https://discourse.processing.org/t/unsatisfied-link-error-with-openkinect-on-macos-ventura/39896)

<div class="topic-metadata">

**Author:** [@clauscarnival](https://discourse.processing.org/u/clauscarnival)\
**Replies:** 2\
**Last updated:** [May 19, 2023, 12:12pm UTC](https://discourse.processing.org/t/unsatisfied-link-error-with-openkinect-on-macos-ventura/39896 "2023-05-19T12:12:57Z")

</div>

Hello all, I tried loading my Kinect project after updating to macOS Ventura and now I get this error message: UnsatisfiedLinkError: Can’t load library: /Users/lucas/Documents/Processing2/libraries/openkinect\_processin…

---

## [Fullscreen on a 2nd Monitor fails in macOS (P3D Renderer)](https://discourse.processing.org/t/fullscreen-on-a-2nd-monitor-fails-in-macos-p3d-renderer/41930)

<div class="topic-metadata">

**Author:** [@robotandproud](https://discourse.processing.org/u/robotandproud)\
**Replies:** 1\
**Last updated:** [May 18, 2023, 12:51am UTC](https://discourse.processing.org/t/fullscreen-on-a-2nd-monitor-fails-in-macos-p3d-renderer/41930 "2023-05-18T00:51:25Z")

</div>

I’m attempting to run the following example which is based on the Processing Reference to run a sketch in fullscreen mode on a 2nd monitor. It works fine with the default renderer, however when I changed the fullScreen()…

---

## [Contributions-\>Tools-\>Add Tool](https://discourse.processing.org/t/contributions-tools-add-tool/42008)

<div class="topic-metadata">

**Author:** [@ORR](https://discourse.processing.org/u/ORR)\
**Replies:** 5\
**Last updated:** [May 16, 2023, 8:32pm UTC](https://discourse.processing.org/t/contributions-tools-add-tool/42008 "2023-05-16T20:32:45Z")

</div>

Hello, I am using Processing 4.2 in Windows10. I am interested in adding the “JavaDoc” tool. The processing Documentations Tools page mentions to execute the “Add Tools …” from the Tools menu but there isn’t an “Add Too…

---

## [Sampling a pseudo rotation into a perfect rotation. It works! (but not from everywhere)](https://discourse.processing.org/t/sampling-a-pseudo-rotation-into-a-perfect-rotation-it-works-but-not-from-everywhere/42013)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 0\
**Last updated:** [May 16, 2023, 9:55am UTC](https://discourse.processing.org/t/sampling-a-pseudo-rotation-into-a-perfect-rotation-it-works-but-not-from-everywhere/42013 "2023-05-16T09:55:38Z")

</div>

Hi everyones :wink: This code allows you to record mouse as a movement of rotation and play it back using interpolation to smooth the movement between recorded samples. Morever, If your circle pass through the first po…

---

## [If you want to modify the font of the 'Gracia' library graph](https://discourse.processing.org/t/if-you-want-to-modify-the-font-of-the-gracia-library-graph/42012)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 1\
**Last updated:** [May 16, 2023, 8:53am UTC](https://discourse.processing.org/t/if-you-want-to-modify-the-font-of-the-gracia-library-graph/42012 "2023-05-16T08:53:44Z")

</div>

If you want to modify the font of the ‘Gracia’ library graph hello. Nice to meet you. Reference link 1: https://jagracar.com/ Reference link 2: GitHub - jagracar/jagracar.com: My personal web Check out the source c…

---

## [Function changes an array it shouldn't interact with at all](https://discourse.processing.org/t/function-changes-an-array-it-shouldnt-interact-with-at-all/42004)

<div class="topic-metadata">

**Author:** [@Lednev](https://discourse.processing.org/u/Lednev)\
**Replies:** 9\
**Last updated:** [May 16, 2023, 1:17am UTC](https://discourse.processing.org/t/function-changes-an-array-it-shouldnt-interact-with-at-all/42004 "2023-05-16T01:17:50Z")

</div>

With th line marked with many “#” active i get this: With it inactive i get this: This line and the line above it changes the p1 array somehow, even though it shouln’t, as far as i understand. What am i missing…

---

## [How can i create Brushes for drawing?](https://discourse.processing.org/t/how-can-i-create-brushes-for-drawing/41990)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 6\
**Last updated:** [May 15, 2023, 7:48pm UTC](https://discourse.processing.org/t/how-can-i-create-brushes-for-drawing/41990 "2023-05-15T19:48:21Z")

</div>

I want to make brushes for my drawing software, i have code, but its kinda bad and not working correctly. The problem is if i put down a image of the brush every frame, it will not work when moving the mouse fast. I tri…

---

## [Controlling the drawing flow of Processing](https://discourse.processing.org/t/controlling-the-drawing-flow-of-processing/41979)

<div class="topic-metadata">

**Author:** [@DavidGR74](https://discourse.processing.org/u/DavidGR74)\
**Replies:** 6\
**Last updated:** [May 15, 2023, 7:16pm UTC](https://discourse.processing.org/t/controlling-the-drawing-flow-of-processing/41979 "2023-05-15T19:16:04Z")

</div>

Hello, this is my first message here. I’ve been developing for 3 years a library called JMathAnim to create mathematical animations, as an alternative to the Python manim library. So far it uses JavaFX as a renderer, bu…

---

## [Look for a code that interacts with Processing through plants](https://discourse.processing.org/t/look-for-a-code-that-interacts-with-processing-through-plants/41988)

<div class="topic-metadata">

**Author:** [@jiajia](https://discourse.processing.org/u/jiajia)\
**Replies:** 8\
**Last updated:** [May 14, 2023, 9:59pm UTC](https://discourse.processing.org/t/look-for-a-code-that-interacts-with-processing-through-plants/41988 "2023-05-14T21:59:11Z")

</div>

I want to make an interactive device that touches green plants and processing, and I would like to ask if there is any corresponding code for the big bosses, thanks

---

## [Issue trying to draw a cylinder](https://discourse.processing.org/t/issue-trying-to-draw-a-cylinder/41984)

<div class="topic-metadata">

**Author:** [@alex119](https://discourse.processing.org/u/alex119)\
**Replies:** 2\
**Last updated:** [May 13, 2023, 6:44pm UTC](https://discourse.processing.org/t/issue-trying-to-draw-a-cylinder/41984 "2023-05-13T18:44:14Z")

</div>

Hello, I am trying to draw a shape, like a cylinder, but the output is something like this: As you see, the last point is not matching the first point and I can’t figure out what I am doing wrong. Here is the code …

---

## [Possible to make a lot of statements into one?](https://discourse.processing.org/t/possible-to-make-a-lot-of-statements-into-one/41904)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 25\
**Last updated:** [May 10, 2023, 4:15pm UTC](https://discourse.processing.org/t/possible-to-make-a-lot-of-statements-into-one/41904 "2023-05-10T16:15:56Z")

</div>

Can i replace this, with something easier? mabye terrainBase\[playerxpos+ix-1\]\[playerypos+iy\] == 0 && terrainBase\[playerxpos+ix-1\]\[playerypos+iy\] == 3 && terrainBase\[playerxpos+ix-1\]\[playerypos+iy\] == 4 && terrainBase\[pl…

---

## [Deforming a shape with increasing values toward the X axis](https://discourse.processing.org/t/deforming-a-shape-with-increasing-values-toward-the-x-axis/41959)

<div class="topic-metadata">

**Author:** [@michele\_rinaldi](https://discourse.processing.org/u/michele_rinaldi)\
**Replies:** 3\
**Last updated:** [May 12, 2023, 7:11am UTC](https://discourse.processing.org/t/deforming-a-shape-with-increasing-values-toward-the-x-axis/41959 "2023-05-12T07:11:08Z")

</div>

Hi all. I am working on this sketch where I am trying to simulate the inner circles of the tree trunk with a proximity sensor connected to Arduino whose values determine the width of these circles. I wanted to ask if t…

---

## [Box2D for Processing not available](https://discourse.processing.org/t/box2d-for-processing-not-available/41967)

<div class="topic-metadata">

**Author:** [@currymike](https://discourse.processing.org/u/currymike)\
**Replies:** 1\
**Last updated:** [May 11, 2023, 8:33pm UTC](https://discourse.processing.org/t/box2d-for-processing-not-available/41967 "2023-05-11T20:33:48Z")

</div>

I updated Processing to version 4.2 now Daniel Shiffman’s Box2D for Processing is missing from the libraries. Is the library no longer supported?

---

## [How to int array](https://discourse.processing.org/t/how-to-int-array/41952)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 12\
**Last updated:** [May 9, 2023, 9:10pm UTC](https://discourse.processing.org/t/how-to-int-array/41952 "2023-05-09T21:10:17Z")

</div>

hi forum anyone could help me how to change following code int lowerb = 100; int upperb = 145; into this int lowerb = (\[100,0,0\]); int upperb = (\[255,80,255\]); below is complete code import gab.opencv.\*; import proc…

---

## [Trying to write code for random GIF generator](https://discourse.processing.org/t/trying-to-write-code-for-random-gif-generator/41821)

<div class="topic-metadata">

**Author:** [@Jbwilke](https://discourse.processing.org/u/Jbwilke)\
**Replies:** 31\
**Last updated:** [May 8, 2023, 3:18am UTC](https://discourse.processing.org/t/trying-to-write-code-for-random-gif-generator/41821 "2023-05-08T03:18:15Z")

</div>

Hi! I’m looking for any examples of Processing code (or any leads) that people here might know of for generating random gifs. I’ve been googling, but haven’t made any progress. It seems there are examples in other lang…

---

## [OpenCV - Unable to display histogram result of saved video](https://discourse.processing.org/t/opencv-unable-to-display-histogram-result-of-saved-video/41934)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 3\
**Last updated:** [May 7, 2023, 9:32pm UTC](https://discourse.processing.org/t/opencv-unable-to-display-histogram-result-of-saved-video/41934 "2023-05-07T21:32:40Z")

</div>

hi forum, i tried bellow code to display video and histogram result of saved video, the video succeed to display but the histogram shows black image. thank you for help import gab.opencv.\*; import processing.video.\*; Mo…

---

## [PGraphics beginDraw() performance](https://discourse.processing.org/t/pgraphics-begindraw-performance/41929)

<div class="topic-metadata">

**Author:** [@Morzsamx](https://discourse.processing.org/u/Morzsamx)\
**Replies:** 4\
**Last updated:** [May 7, 2023, 3:55pm UTC](https://discourse.processing.org/t/pgraphics-begindraw-performance/41929 "2023-05-07T15:55:13Z")

</div>

Hello, My workplace uses a 3d application built on processing 4.2. I had no issues before, but trying to run it on my new laptop I got terrible performance, so I tried to have a look at the code and found that the begin…

---

## [Updating after a some time on all frameCounts?](https://discourse.processing.org/t/updating-after-a-some-time-on-all-framecounts/41935)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 1\
**Last updated:** [May 7, 2023, 1:00pm UTC](https://discourse.processing.org/t/updating-after-a-some-time-on-all-framecounts/41935 "2023-05-07T13:00:53Z")

</div>

Is this code fine for every frame count? it doesntned to be super accurate void updateInterval() { updatingIntervalCounter++; updateNow = false; if (updatingIntervalCounter \> frameRate/8) { updatingIntervalCou…

---

## [Gif random generator](https://discourse.processing.org/t/gif-random-generator/41932)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 1\
**Last updated:** [May 7, 2023, 10:13am UTC](https://discourse.processing.org/t/gif-random-generator/41932 "2023-05-07T10:13:41Z")

</div>

If you’re a registered user, the API\_key should be good. It may be more of a problem of getting the correct url for the .mp4. We should be able to use @Chrisir’s technique to offset into the JSON data file to extract a…

---

## [I want to get the value of a cp5 DropdownList](https://discourse.processing.org/t/i-want-to-get-the-value-of-a-cp5-dropdownlist/41925)

<div class="topic-metadata">

**Author:** [@Azorbz](https://discourse.processing.org/u/Azorbz)\
**Replies:** 2\
**Last updated:** [May 6, 2023, 7:03pm UTC](https://discourse.processing.org/t/i-want-to-get-the-value-of-a-cp5-dropdownlist/41925 "2023-05-06T19:03:56Z")

</div>

I am trying to select a folder from a cp5 Dropdown List, but nothing I do seems to work. My best attempt is (The current data folder contains three folders, “A”, “B”, and “C”, which are read perfectly well on the Dropdo…

---

## [loadJSONObject() fails to load compressed JSON provided by an API](https://discourse.processing.org/t/loadjsonobject-fails-to-load-compressed-json-provided-by-an-api/41919)

<div class="topic-metadata">

**Author:** [@fabwoj](https://discourse.processing.org/u/fabwoj)\
**Replies:** 2\
**Last updated:** [May 5, 2023, 5:42pm UTC](https://discourse.processing.org/t/loadjsonobject-fails-to-load-compressed-json-provided-by-an-api/41919 "2023-05-05T17:42:32Z")

</div>

Hi, I had to use an API which now send compressed json. loadJSONObject() fails to get thoses kind of json. I did this workaround which seems to work. import java.net.\*; import java.io.\*; import java.util.zip.GZIPInpu…

---

## [Problem with send hex data from TCP/IP](https://discourse.processing.org/t/problem-with-send-hex-data-from-tcp-ip/36747)

<div class="topic-metadata">

**Author:** [@demoss](https://discourse.processing.org/u/demoss)\
**Replies:** 6\
**Last updated:** [May 4, 2023, 3:09am UTC](https://discourse.processing.org/t/problem-with-send-hex-data-from-tcp-ip/36747 "2023-05-04T03:09:11Z")

</div>

Hi all there! Can you help me please understand how i can send the hex data pattern to remote device ip ike 10.0.255.182 and port 8234? i try use that code import processing.net.\*; Client c1; byte\[\] dataIn ={}; int fla…

---

## [Why my function accept a Primitive Type?](https://discourse.processing.org/t/why-my-function-accept-a-primitive-type/41902)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 4\
**Last updated:** [May 3, 2023, 8:00pm UTC](https://discourse.processing.org/t/why-my-function-accept-a-primitive-type/41902 "2023-05-03T20:00:56Z")

</div>

I wrote this code, and strangely it’s work in Processing for an unknown reason. void setup() { int \[\] arr = {0,1,2,3}; // that's work, but normaly must fail // Integer \[\] arr = {0,1,2,3}; // this one work but it's n…

---

## [Hitbox detection?](https://discourse.processing.org/t/hitbox-detection/41871)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 9\
**Last updated:** [May 3, 2023, 4:23pm UTC](https://discourse.processing.org/t/hitbox-detection/41871 "2023-05-03T16:23:17Z")

</div>

the terrain is a 2d array, and thre player can move just a tiny but so how do i do it? i dont wanna use a pgraphics with get()

---

## [Max value millis()](https://discourse.processing.org/t/max-value-millis/41887)

<div class="topic-metadata">

**Author:** [@Christian](https://discourse.processing.org/u/Christian)\
**Replies:** 2\
**Last updated:** [May 2, 2023, 6:29pm UTC](https://discourse.processing.org/t/max-value-millis/41887 "2023-05-02T18:29:18Z")

</div>

Hello! I’m wondering what the maximum value of millis() is?

---

## [Processing 4.1.2 is out ✨](https://discourse.processing.org/t/processing-4-1-2-is-out/40660)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 6\
**Last updated:** [May 2, 2023, 5:31pm UTC](https://discourse.processing.org/t/processing-4-1-2-is-out/40660 "2023-05-02T17:31:11Z")

</div>

Hi everyone! Processing 4.1.2 was released on Tuesday. It fixes issues many of you have had with the Contributions Manager (what you see when importing Libraries, managing Modes, etc.) :arrow\_right: Processing downloa…

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

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