# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=72

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

**Page:** 73

---

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

---

## [The render window is scaled improperly when Windows display scale is set to greater than 100%](https://discourse.processing.org/t/the-render-window-is-scaled-improperly-when-windows-display-scale-is-set-to-greater-than-100/36932)

<div class="topic-metadata">

**Author:** [@Metamere](https://discourse.processing.org/u/Metamere)\
**Replies:** 2\
**Last updated:** [May 14, 2023, 7:28pm UTC](https://discourse.processing.org/t/the-render-window-is-scaled-improperly-when-windows-display-scale-is-set-to-greater-than-100/36932 "2023-05-14T19:28:48Z")

</div>

Hi. I have a QHD monitor (2560x1440), and I have my display scale set to 150% for readability. Unfortunately, in Python mode, the render window is also scaled up the same amount, making things very jagged. I didn’t reali…

---

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

---

## [How do I make this image using loops but the circle does not have to be included](https://discourse.processing.org/t/how-do-i-make-this-image-using-loops-but-the-circle-does-not-have-to-be-included/41980)

<div class="topic-metadata">

**Author:** [@Computerscience](https://discourse.processing.org/u/Computerscience)\
**Replies:** 2\
**Last updated:** [May 12, 2023, 11:53pm UTC](https://discourse.processing.org/t/how-do-i-make-this-image-using-loops-but-the-circle-does-not-have-to-be-included/41980 "2023-05-12T23:53:33Z")

</div>

function setup() { createCanvas(400, 400); } function draw() { background(220); ellipse(200,200,50,50) for (let count = 25; count \< 10; count++) { line(50,200,200,20) } } image needed to make:

---

## [Last Call for Applications: Extended Deadline for 2023 Processing Foundation Fellowship Program!](https://discourse.processing.org/t/last-call-for-applications-extended-deadline-for-2023-processing-foundation-fellowship-program/41943)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 3\
**Last updated:** [May 12, 2023, 1:44pm UTC](https://discourse.processing.org/t/last-call-for-applications-extended-deadline-for-2023-processing-foundation-fellowship-program/41943 "2023-05-12T13:44:25Z")

</div>

:tada: Deadline extended! Apply for the 2023 Processing Foundation Fellowship Program by May 15th, 11:59 PM PST and join the info session on May 8th! The fellowship offers a $10,000 stipend, mentorship, and public-facing…

---

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

---

## [How do I make it so that the rollover also exists for the right circle and not just the left circle](https://discourse.processing.org/t/how-do-i-make-it-so-that-the-rollover-also-exists-for-the-right-circle-and-not-just-the-left-circle/41954)

<div class="topic-metadata">

**Author:** [@Computerscience](https://discourse.processing.org/u/Computerscience)\
**Replies:** 1\
**Last updated:** [May 9, 2023, 5:38pm UTC](https://discourse.processing.org/t/how-do-i-make-it-so-that-the-rollover-also-exists-for-the-right-circle-and-not-just-the-left-circle/41954 "2023-05-09T17:38:07Z")

</div>

var x = 150; var y = 200; var d = 200; var e= 250; function setup() { createCanvas(400, 400); } function draw() { background(255,0,0) if (dist(mouseX, mouseY, x, y) \< d/2) { background(0,255,0); } else { …

---

## [Is there an example hello world sketch for the new Android Studio?](https://discourse.processing.org/t/is-there-an-example-hello-world-sketch-for-the-new-android-studio/41947)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [May 9, 2023, 2:02pm UTC](https://discourse.processing.org/t/is-there-an-example-hello-world-sketch-for-the-new-android-studio/41947 "2023-05-09T14:02:39Z")

</div>

As the title suggests since android has been updated, the old android repository https://android.processing.org/tutorials/android\_studio/index.html no longer works. Does any one have a how to to hello world in android…

---

## [Neural Network - Switch Net with back-propagation](https://discourse.processing.org/t/neural-network-switch-net-with-back-propagation/41892)

<div class="topic-metadata">

**Author:** [@seanc87](https://discourse.processing.org/u/seanc87)\
**Replies:** 1\
**Last updated:** [May 9, 2023, 2:43am UTC](https://discourse.processing.org/t/neural-network-switch-net-with-back-propagation/41892 "2023-05-09T02:43:52Z")

</div>

It is kind of difficult to implement wide neural networks on a CPU because the amount of compute required scales according to width by width. A dense neural layer of width 256 needs 256 by 256 fused multiply adds, and i…

---

## [How can I retrieve SMS on Android phone?](https://discourse.processing.org/t/how-can-i-retrieve-sms-on-android-phone/33704)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 2\
**Last updated:** [May 8, 2023, 9:16pm UTC](https://discourse.processing.org/t/how-can-i-retrieve-sms-on-android-phone/33704 "2023-05-08T21:16:59Z")

</div>

I’ve written a sketch which processes a line of text. I want to be able to send my input via SMS. Then the program is alerted by incoming SMS and prosses the text in the SMS. I’ve tried to google a solution without succ…

---

## [New Logo Design Now Live on Processing Foundation Forum!](https://discourse.processing.org/t/new-logo-design-now-live-on-processing-foundation-forum/41909)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 8\
**Last updated:** [May 8, 2023, 1:36pm UTC](https://discourse.processing.org/t/new-logo-design-now-live-on-processing-foundation-forum/41909 "2023-05-08T13:36:48Z")

</div>

Exciting news! The Processing Foundation forum now sports a brand new look with our updated logo design introduced in 2021. Check it out and let us know what you think!

---

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

---

## [Open source geospatial tools for Processing](https://discourse.processing.org/t/open-source-geospatial-tools-for-processing/41921)

<div class="topic-metadata">

**Author:** [@sampottinger](https://discourse.processing.org/u/sampottinger)\
**Replies:** 0\
**Last updated:** [May 5, 2023, 8:07pm UTC](https://discourse.processing.org/t/open-source-geospatial-tools-for-processing/41921 "2023-05-05T20:07:35Z")

</div>

Hello! We open sourced some small tools for geospatial visualizations. GitHub - SchmidtDSE/processing-geo-tools: Some pieces of Processing code we’ve found useful for geospatial stuff.. It’s not meant to be a full libra…

---

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

---

## [Proceso: A Python package for creative coding on the web](https://discourse.processing.org/t/proceso-a-python-package-for-creative-coding-on-the-web/41895)

<div class="topic-metadata">

**Author:** [@mcintyre](https://discourse.processing.org/u/mcintyre)\
**Replies:** 1\
**Last updated:** [May 4, 2023, 8:11pm UTC](https://discourse.processing.org/t/proceso-a-python-package-for-creative-coding-on-the-web/41895 "2023-05-04T20:11:49Z")

</div>

Hello! I started tinkering with p5.js and PyScript last week and wound up creating a new sketchbook for the web called proceso (“process” in Spanish). It’s heavily inspired by py5 and aims to integrate p5.js into the Py…

---

## [Move around the perimeter of a rectangle (using maths)](https://discourse.processing.org/t/move-around-the-perimeter-of-a-rectangle-using-maths/41905)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 1\
**Last updated:** [May 4, 2023, 5:37am UTC](https://discourse.processing.org/t/move-around-the-perimeter-of-a-rectangle-using-maths/41905 "2023-05-04T05:37:33Z")

</div>

Hello, im here, learning maths, or trying… so, i want to move around the perimeter of a rectangle using trigonometrics function like sin or cos, it is possible? In the example i using the regular if else stament. I know…

---

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

---

## [Homework help with loops](https://discourse.processing.org/t/homework-help-with-loops/41903)

<div class="topic-metadata">

**Author:** [@Computerscience](https://discourse.processing.org/u/Computerscience)\
**Replies:** 6\
**Last updated:** [May 3, 2023, 7:13pm UTC](https://discourse.processing.org/t/homework-help-with-loops/41903 "2023-05-03T19:13:56Z")

</div>

Question: Draw a character that would fit within a 40×40 pixel box. Once you have this working, use for loops to “tile” the image 100 times on a 400×400 pixel canvas. Hint: can you do this using only 2 for loops? proble…

---

## [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()

---

## [Most efficient way of incrementing the entire sketches pixels saturation values?](https://discourse.processing.org/t/most-efficient-way-of-incrementing-the-entire-sketches-pixels-saturation-values/41886)

<div class="topic-metadata">

**Author:** [@jgl](https://discourse.processing.org/u/jgl)\
**Replies:** 4\
**Last updated:** [May 3, 2023, 2:41pm UTC](https://discourse.processing.org/t/most-efficient-way-of-incrementing-the-entire-sketches-pixels-saturation-values/41886 "2023-05-03T14:41:11Z")

</div>

Hi All, I’m currently trying to develop a sketch where you can rub out a colour from the screen, but it keeps fading back from black to the colour. You can see an index of experiments here: Sketches here The sketch i…

---

## [LookUp home-made videoClip](https://discourse.processing.org/t/lookup-home-made-videoclip/35422)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 11:36am UTC](https://discourse.processing.org/t/lookup-home-made-videoclip/35422 "2023-05-03T11:36:55Z")

</div>

Hi, here’s a videoClip that I made from A to Z. I use 12 jpg that I glitch. It catch 3 midi Channels from model:sample. Here’s the code : Look-Up on github Enjoy !

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=71)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=73)
