# Latest

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

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

**Page:** 141

---

## [Why is PGraphics.g2 null](https://discourse.processing.org/t/why-is-pgraphics-g2-null/36623)

<div class="topic-metadata">

**Author:** [@Rico](https://discourse.processing.org/u/Rico)\
**Replies:** 4\
**Last updated:** [April 27, 2022, 1:49pm UTC](https://discourse.processing.org/t/why-is-pgraphics-g2-null/36623 "2022-04-27T13:49:11Z")

</div>

I’m having trouble rendering PShapes into a PGraphics object. Here is the simplest version of the code that demonstrates the issue: PGraphics g; void setup() { size(850, 850); g = createGraphics(800, 800); PShape…

---

## [Processing VS OpenSCAD?](https://discourse.processing.org/t/processing-vs-openscad/36501)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 2\
**Last updated:** [April 27, 2022, 10:32am UTC](https://discourse.processing.org/t/processing-vs-openscad/36501 "2022-04-27T10:32:07Z")

</div>

Hello, To those who know OpenSCAD: is it as esay to use Processing to generate 3d models algorithmically and export them as .STL files? which libraries would you recommend for such purpose? Also, I really like OpenSCAD …

---

## [What is the difference between "PBox2D library"and "box2d\_processing library"?](https://discourse.processing.org/t/what-is-the-difference-between-pbox2d-library-and-box2d-processing-library/21915)

<div class="topic-metadata">

**Author:** [@huahua](https://discourse.processing.org/u/huahua)\
**Replies:** 3\
**Last updated:** [April 27, 2022, 1:32am UTC](https://discourse.processing.org/t/what-is-the-difference-between-pbox2d-library-and-box2d-processing-library/21915 "2022-04-27T01:32:20Z")

</div>

i am confused about the “PBox2d” in book The Nature of Code. when i tried run the example , the main tab import pbox2d.\*; import org.jbox2d.collision.shapes.\*; import org.jbox2d.common.\*; import org.jbox2d.dynamics.\*;…

---

## [Parsing points from a text file](https://discourse.processing.org/t/parsing-points-from-a-text-file/36611)

<div class="topic-metadata">

**Author:** [@Aaron\_Barber272](https://discourse.processing.org/u/Aaron_Barber272)\
**Replies:** 1\
**Last updated:** [April 27, 2022, 12:54am UTC](https://discourse.processing.org/t/parsing-points-from-a-text-file/36611 "2022-04-27T00:54:22Z")

</div>

PVector\[\] globe; float x = 0; float y = 0; float z = 0; import peasy.\*; PeasyCam cam; void setup() { size(600, 600, P3D); cam = new PeasyCam(this, 500); globe = new PVector\[30\]; stroke(255); lights(); } void…

---

## [How to animate the size of the rectangles](https://discourse.processing.org/t/how-to-animate-the-size-of-the-rectangles/36602)

<div class="topic-metadata">

**Author:** [@Alllukaht](https://discourse.processing.org/u/Alllukaht)\
**Replies:** 6\
**Last updated:** [April 26, 2022, 6:56pm UTC](https://discourse.processing.org/t/how-to-animate-the-size-of-the-rectangles/36602 "2022-04-26T18:56:22Z")

</div>

\< void setup() { size(800, 620); } void draw() { background(#000000); int lw = 40; fill(#fee445); noStroke(); for (int i = 20; i \< width; i += 60) { for (int j = 20; j \< height; j += 60) { if (dist(25, 25, mou…

---

## [Problem with JSDoc createGraphics() annotation in my sketch](https://discourse.processing.org/t/problem-with-jsdoc-creategraphics-annotation-in-my-sketch/36569)

<div class="topic-metadata">

**Author:** [@SNitaine](https://discourse.processing.org/u/SNitaine)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 6:46pm UTC](https://discourse.processing.org/t/problem-with-jsdoc-creategraphics-annotation-in-my-sketch/36569 "2022-04-26T18:46:50Z")

</div>

When working with createGraphics() how do you set the correct JSDoc comment for the global variable var pg that is declared global outside of setup() and draw(). let say we start with a simple sketch like this: var pg …

---

## [Cube explosion when clicking inside the cube](https://discourse.processing.org/t/cube-explosion-when-clicking-inside-the-cube/36573)

<div class="topic-metadata">

**Author:** [@Timo](https://discourse.processing.org/u/Timo)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 2:13pm UTC](https://discourse.processing.org/t/cube-explosion-when-clicking-inside-the-cube/36573 "2022-04-26T14:13:15Z")

</div>

Hello everyone, in my sketch I am using WEBGL and ScreenPosition js to create a new cube whenever the mouse X , mouseY co-ordinates are inside the cube. I am currently trying to make the cube explode when the above condi…

---

## [How to make random bubbles falling down and fill up the screen without overlapping?](https://discourse.processing.org/t/how-to-make-random-bubbles-falling-down-and-fill-up-the-screen-without-overlapping/36606)

<div class="topic-metadata">

**Author:** [@hau4302](https://discourse.processing.org/u/hau4302)\
**Replies:** 0\
**Last updated:** [April 26, 2022, 11:08am UTC](https://discourse.processing.org/t/how-to-make-random-bubbles-falling-down-and-fill-up-the-screen-without-overlapping/36606 "2022-04-26T11:08:16Z")

</div>

I can’t really figure out how to make the images display randomly in different bubbles and also how to make them not overlapping each other. Does anybody know what should I do to make these effects? PImage bubble1; PI…

---

## [How to use "DropdownList bringToFront()" in ControlP5?](https://discourse.processing.org/t/how-to-use-dropdownlist-bringtofront-in-controlp5/31934)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 2\
**Last updated:** [April 26, 2022, 9:59am UTC](https://discourse.processing.org/t/how-to-use-dropdownlist-bringtofront-in-controlp5/31934 "2022-04-26T09:59:16Z")

</div>

I am adding many drop down lists and when they are open, they overlap. But the one that is open stays behind the other ones. On the example code there is this line, but I cannot find out how to use it :frowning: control…

---

## [Jagged lines in Processing 4](https://discourse.processing.org/t/jagged-lines-in-processing-4/35929)

<div class="topic-metadata">

**Author:** [@ALF](https://discourse.processing.org/u/ALF)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 2:55am UTC](https://discourse.processing.org/t/jagged-lines-in-processing-4/35929 "2022-04-26T02:55:53Z")

</div>

Hello so, I’m using windows 10 on a 1920x1080 laptop and the lines just look horribly jagged also, smooth() is not working in any of its modes. I checked back in v. 3.5 and everything looks fine. I apologize if Im miss…

---

## [Weird background stroke of a growing circle](https://discourse.processing.org/t/weird-background-stroke-of-a-growing-circle/36588)

<div class="topic-metadata">

**Author:** [@hannymymy](https://discourse.processing.org/u/hannymymy)\
**Replies:** 5\
**Last updated:** [April 25, 2022, 9:34pm UTC](https://discourse.processing.org/t/weird-background-stroke-of-a-growing-circle/36588 "2022-04-25T21:34:55Z")

</div>

Hello everyone! I’m very new to processing and have a few questions regarding this code: It is supposed to be a growing and a shrinking circle, and it works, but the background is such a weird black pattern, that I don’…

---

## [Press Button to Dispaly Text on the Screen](https://discourse.processing.org/t/press-button-to-dispaly-text-on-the-screen/36591)

<div class="topic-metadata">

**Author:** [@Kitessa](https://discourse.processing.org/u/Kitessa)\
**Replies:** 1\
**Last updated:** [April 25, 2022, 8:11pm UTC](https://discourse.processing.org/t/press-button-to-dispaly-text-on-the-screen/36591 "2022-04-25T20:11:46Z")

</div>

Hi There, Just trying to make 3 buttons work in P5Js. I am trying to have some text displayed every time you press the button but I am struggling to write this piece of code that will get text displayed. Thast my code s…

---

## [Exporting app for Mac OS](https://discourse.processing.org/t/exporting-app-for-mac-os/36517)

<div class="topic-metadata">

**Author:** [@Slien](https://discourse.processing.org/u/Slien)\
**Replies:** 4\
**Last updated:** [April 25, 2022, 5:02pm UTC](https://discourse.processing.org/t/exporting-app-for-mac-os/36517 "2022-04-25T17:02:40Z")

</div>

Exporting the code runs fine and as expected on Windows. However, trying to do the same on Mac is an entirely different story. While the .app file does work like normal when you run it on the device that exported it in t…

---

## [Anyone Paint Program](https://discourse.processing.org/t/anyone-paint-program/36585)

<div class="topic-metadata">

**Author:** [@king\_B99](https://discourse.processing.org/u/king_B99)\
**Replies:** 0\
**Last updated:** [April 25, 2022, 1:21pm UTC](https://discourse.processing.org/t/anyone-paint-program/36585 "2022-04-25T13:21:42Z")

</div>

Does anyone have a paint.net program that I can use as a reference looking to just be able to run the code see how it works and then make a copy with my own stuff.

---

## [My code lost. Help!](https://discourse.processing.org/t/my-code-lost-help/12721)

<div class="topic-metadata">

**Author:** [@Hammad](https://discourse.processing.org/u/Hammad)\
**Replies:** 10\
**Last updated:** [April 25, 2022, 12:55pm UTC](https://discourse.processing.org/t/my-code-lost-help/12721 "2022-04-25T12:55:09Z")

</div>

while I was editing my code for my application, i saved my code but just after saving it my computer’s power went off, i restarted my computer and my application’s file was there but when i opened it with the processing …

---

## [Create visuals from sound (wav file)](https://discourse.processing.org/t/create-visuals-from-sound-wav-file/33795)

<div class="topic-metadata">

**Author:** [@Pyo](https://discourse.processing.org/u/Pyo)\
**Replies:** 10\
**Last updated:** [April 25, 2022, 10:21am UTC](https://discourse.processing.org/t/create-visuals-from-sound-wav-file/33795 "2022-04-25T10:21:52Z")

</div>

Hi, i’m new here and just using Processing a little bit. Started by “messing” with existing code. : ) Now, what i’d like to do is generate statics visuals form the data contained in sound files. For exemple amplitude and…

---

## [I'm trying to find a WordPress theme Medio V1.0](https://discourse.processing.org/t/im-trying-to-find-a-wordpress-theme-medio-v1-0/36473)

<div class="topic-metadata">

**Author:** [@windnerawil1971](https://discourse.processing.org/u/windnerawil1971)\
**Replies:** 1\
**Last updated:** [April 20, 2022, 7:50pm UTC](https://discourse.processing.org/t/im-trying-to-find-a-wordpress-theme-medio-v1-0/36473 "2022-04-20T19:50:22Z")

</div>

Any one can tell me any website where I can download Medio V1.0 null wordpress theme. Please help me, thank you

---

## [\[P5\] Can I import IP camera video data?](https://discourse.processing.org/t/p5-can-i-import-ip-camera-video-data/36580)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 1\
**Last updated:** [April 25, 2022, 2:30am UTC](https://discourse.processing.org/t/p5-can-i-import-ip-camera-video-data/36580 "2022-04-25T02:30:14Z")

</div>

\[P5\] Can I import IP camera video data? Please refer to the photo above. In JAVA Mode (1) Video library (2) IP Capture library (3) VLCJVideo library It can be solved through In P5 Mode Do you have any solution…

---

## [\[UDP library\] Is it okay to have more UDP client users?](https://discourse.processing.org/t/udp-library-is-it-okay-to-have-more-udp-client-users/36516)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [April 24, 2022, 10:52pm UTC](https://discourse.processing.org/t/udp-library-is-it-okay-to-have-more-udp-client-users/36516 "2022-04-24T22:52:42Z")

</div>

\[UDP library\] Is it okay to have more UDP client users? hello. nice to meet you. Please refer to the picture above. Multiple clients connect to one computer. Client continues to connect. Clients are still connecte…

---

## [Can someone explain to me what are, and why we use BITWISE operations?](https://discourse.processing.org/t/can-someone-explain-to-me-what-are-and-why-we-use-bitwise-operations/36576)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.processing.org/u/animanoir)\
**Replies:** 3\
**Last updated:** [April 24, 2022, 7:37pm UTC](https://discourse.processing.org/t/can-someone-explain-to-me-what-are-and-why-we-use-bitwise-operations/36576 "2022-04-24T19:37:21Z")

</div>

I understand that they act inside the bits of some value, but exactly what’s the theory and purpose behind them?

---

## [Bad refresh rate on Linux when not moving mouse](https://discourse.processing.org/t/bad-refresh-rate-on-linux-when-not-moving-mouse/36554)

<div class="topic-metadata">

**Author:** [@sciss](https://discourse.processing.org/u/sciss)\
**Replies:** 3\
**Last updated:** [April 24, 2022, 7:10pm UTC](https://discourse.processing.org/t/bad-refresh-rate-on-linux-when-not-moving-mouse/36554 "2022-04-24T19:10:27Z")

</div>

Hi there, having a typical Java2D issue on Linux where window is not instantly repainted unless mouse is moved. In my own Scala code I usually try to get around it by calling component.toolkit.sync(). Has nobody experie…

---

## [Python Processing with Trinket - saving graphics file](https://discourse.processing.org/t/python-processing-with-trinket-saving-graphics-file/36530)

<div class="topic-metadata">

**Author:** [@simonc8](https://discourse.processing.org/u/simonc8)\
**Replies:** 0\
**Last updated:** [April 22, 2022, 7:06pm UTC](https://discourse.processing.org/t/python-processing-with-trinket-saving-graphics-file/36530 "2022-04-22T19:06:50Z")

</div>

I want to use the processing library with Python in Trinket to create very simple graphics files, for example, some national flags. (This is for a Code Club to teach the students about pixels, RGB colours etc.) I would l…

---

## [Equivalent (PShape?) to Java2D Area subtract](https://discourse.processing.org/t/equivalent-pshape-to-java2d-area-subtract/36559)

<div class="topic-metadata">

**Author:** [@sciss](https://discourse.processing.org/u/sciss)\
**Replies:** 3\
**Last updated:** [April 24, 2022, 9:06am UTC](https://discourse.processing.org/t/equivalent-pshape-to-java2d-area-subtract/36559 "2022-04-24T09:06:27Z")

</div>

Hi there. I’m trying to grasp the relationship between PShape and java.awt.Shape. In particular, how can I subtract one PShape from another, or intersect them. E.g. new java.awt.geom.Area(shape1).subtract(new java.awt.ge…

---

## [P5.sound 2022 fellowship](https://discourse.processing.org/t/p5-sound-2022-fellowship/36453)

<div class="topic-metadata">

**Author:** [@stc](https://discourse.processing.org/u/stc)\
**Replies:** 2\
**Last updated:** [April 24, 2022, 8:08am UTC](https://discourse.processing.org/t/p5-sound-2022-fellowship/36453 "2022-04-24T08:08:00Z")

</div>

Is the p5.sound fellowship still in plan for 2022? I was planning to apply and a few days ago the call was available at this link Processing Foundation — 2022 p5.Sound Fellow Open Call with an application deadline of may…

---

## [I can't make a single shader run in Processing](https://discourse.processing.org/t/i-cant-make-a-single-shader-run-in-processing/36462)

<div class="topic-metadata">

**Author:** [@Amirk](https://discourse.processing.org/u/Amirk)\
**Replies:** 6\
**Last updated:** [April 24, 2022, 5:19am UTC](https://discourse.processing.org/t/i-cant-make-a-single-shader-run-in-processing/36462 "2022-04-24T05:19:42Z")

</div>

Someone please help me to get a single shader working in Processing. I am not totally new to Processing, and I have created many shaders in Shadertoy. Now I would like to use shaders to make my simulations in Processing …

---

## [Do shaders work in a mac with M1 chip?](https://discourse.processing.org/t/do-shaders-work-in-a-mac-with-m1-chip/36553)

<div class="topic-metadata">

**Author:** [@Amirk](https://discourse.processing.org/u/Amirk)\
**Replies:** 2\
**Last updated:** [April 24, 2022, 5:18am UTC](https://discourse.processing.org/t/do-shaders-work-in-a-mac-with-m1-chip/36553 "2022-04-24T05:18:57Z")

</div>

I cant get ANY shaders running. After trying everything I can, I am now wondering if the issue might be with the M1 chip of my mac? Maybe this is a long shot but I have no other ideas anymore. I already asked help for t…

---

## [Problem with constructor](https://discourse.processing.org/t/problem-with-constructor/36566)

<div class="topic-metadata">

**Author:** [@RyanLovesPlanes](https://discourse.processing.org/u/RyanLovesPlanes)\
**Replies:** 1\
**Last updated:** [April 24, 2022, 4:48am UTC](https://discourse.processing.org/t/problem-with-constructor/36566 "2022-04-24T04:48:14Z")

</div>

hey ya’ll! My code is almost complete but I am having a problem with one of my classes not initializing a function I made. Specifically the “kill” function ( atarget.kill(); ). it says that kill() expects parameters like…

---

## [Ball doesn't appear](https://discourse.processing.org/t/ball-doesnt-appear/36568)

<div class="topic-metadata">

**Author:** [@maya](https://discourse.processing.org/u/maya)\
**Replies:** 2\
**Last updated:** [April 24, 2022, 4:46am UTC](https://discourse.processing.org/t/ball-doesnt-appear/36568 "2022-04-24T04:46:11Z")

</div>

Hi, for some reason, the ball in my code doesn’t show up. Do you know why? add\_library('sound') import sys count = 0 ball = 0 countdown = 6 dogs = \[\] def setup(): global sf, x, bgImage, y, speed, acceleration, c…

---

## [Can't figure out logic for overlapping squares when clicked](https://discourse.processing.org/t/cant-figure-out-logic-for-overlapping-squares-when-clicked/36563)

<div class="topic-metadata">

**Author:** [@Kipe](https://discourse.processing.org/u/Kipe)\
**Replies:** 2\
**Last updated:** [April 24, 2022, 1:10am UTC](https://discourse.processing.org/t/cant-figure-out-logic-for-overlapping-squares-when-clicked/36563 "2022-04-24T01:10:52Z")

</div>

I’m having trouble figuring out how to emulate this with p5.js. My code is below. I’m able to get each box to move individually, even if they’re overlapping… But the moment I try to change the order of the boxes array th…

---

## [Find the color of a pixel](https://discourse.processing.org/t/find-the-color-of-a-pixel/36558)

<div class="topic-metadata">

**Author:** [@hermitdog](https://discourse.processing.org/u/hermitdog)\
**Replies:** 1\
**Last updated:** [April 24, 2022, 12:36am UTC](https://discourse.processing.org/t/find-the-color-of-a-pixel/36558 "2022-04-24T00:36:22Z")

</div>

\</\> button \* homework policy \* asking questions

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

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