# Latest

**URL:** https://discourse.processing.org/latest.md?page=311

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

**Page:** 312

---

## [Is there a way to load admob ads in an animation thread like draw()?](https://discourse.processing.org/t/is-there-a-way-to-load-admob-ads-in-an-animation-thread-like-draw/22566)

<div class="topic-metadata">

**Author:** [@superspacespaghetti](https://discourse.processing.org/u/superspacespaghetti)\
**Replies:** 30\
**Last updated:** [August 31, 2020, 2:08am UTC](https://discourse.processing.org/t/is-there-a-way-to-load-admob-ads-in-an-animation-thread-like-draw/22566 "2020-08-31T02:08:44Z")

</div>

Hi, i wanted to make an app that loads/shows a google admob banner only when the menu is open (and hides/closes it when the menu is closed too, but i haven’t gotten that far yet). The menu itself is basically just a reca…

---

## [BenTilbert an amusing variant on a 3D Hilbert](https://discourse.processing.org/t/bentilbert-an-amusing-variant-on-a-3d-hilbert/23555)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 9\
**Last updated:** [August 30, 2020, 6:34pm UTC](https://discourse.processing.org/t/bentilbert-an-amusing-variant-on-a-3d-hilbert/23555 "2020-08-30T18:34:00Z")

</div>

Previously, several of us were riffing on Sierpinski variants, this dragged me to OpenProcessing and set me on task to update some of my older contributions. Also @neilcsmith set me thinking about poor old Ben Tilbert, a…

---

## [Audio via Serial, not soundcard - draw() too slow to analyze](https://discourse.processing.org/t/audio-via-serial-not-soundcard-draw-too-slow-to-analyze/23545)

<div class="topic-metadata">

**Author:** [@RFullum](https://discourse.processing.org/u/RFullum)\
**Replies:** 4\
**Last updated:** [August 30, 2020, 9:18am UTC](https://discourse.processing.org/t/audio-via-serial-not-soundcard-draw-too-slow-to-analyze/23545 "2020-08-30T09:18:10Z")

</div>

Hey all, I’m trying to figure out the best way to attack this problem. I have a Mic (Max4466) -\> ADC (ADS1115) -\> Arduino Nano 33 IoT -\> Processing via Serial (USB). My current test sketches work like this: -Arduino is…

---

## [Variable nr. of nested loops (playing with recursion)](https://discourse.processing.org/t/variable-nr-of-nested-loops-playing-with-recursion/23561)

<div class="topic-metadata">

**Author:** [@raron](https://discourse.processing.org/u/raron)\
**Replies:** 0\
**Last updated:** [August 30, 2020, 4:52am UTC](https://discourse.processing.org/t/variable-nr-of-nested-loops-playing-with-recursion/23561 "2020-08-30T04:52:46Z")

</div>

So I’m not sure how useful this is (or if it even belongs in the “Gallery”). I feel I might have overcomplicated something. Maybe it’s a solution looking for a problem :stuck\_out\_tongue: First a simple version, with a f…

---

## [Make perlin noise loop duration coincide with frame duration for looping GIF](https://discourse.processing.org/t/make-perlin-noise-loop-duration-coincide-with-frame-duration-for-looping-gif/23454)

<div class="topic-metadata">

**Author:** [@Leonsuper](https://discourse.processing.org/u/Leonsuper)\
**Replies:** 2\
**Last updated:** [August 29, 2020, 8:47pm UTC](https://discourse.processing.org/t/make-perlin-noise-loop-duration-coincide-with-frame-duration-for-looping-gif/23454 "2020-08-29T20:47:57Z")

</div>

Hello, I didn’t wanna ask two questions in such a short time, but I’ve been having a doubt related to two videos by The Coding Train, “Polar Perlin Noise Loops” and “Perlin Noise GIF Loops”. I tried to mix the two but i…

---

## [screenPositionFunction not projecting correctly](https://discourse.processing.org/t/screenpositionfunction-not-projecting-correctly/23019)

<div class="topic-metadata">

**Author:** [@CND](https://discourse.processing.org/u/CND)\
**Replies:** 11\
**Last updated:** [August 29, 2020, 8:04pm UTC](https://discourse.processing.org/t/screenpositionfunction-not-projecting-correctly/23019 "2020-08-29T20:04:41Z")

</div>

This is my test of the screenPosition function that is not working correctly for me. I have digitized the 6 faces for a basic block and tried drawing them with world coordinates and then screen coordinates. The screen dr…

---

## [PixelFlow: Is it possible to have multiple attractors that work with selected particles?](https://discourse.processing.org/t/pixelflow-is-it-possible-to-have-multiple-attractors-that-work-with-selected-particles/23553)

<div class="topic-metadata">

**Author:** [@jwo](https://discourse.processing.org/u/jwo)\
**Replies:** 0\
**Last updated:** [August 29, 2020, 5:41pm UTC](https://discourse.processing.org/t/pixelflow-is-it-possible-to-have-multiple-attractors-that-work-with-selected-particles/23553 "2020-08-29T17:41:34Z")

</div>

I see that the excellent pixelFlow library (which really deserves more attention) allows attractors to be created (see FlowFieldParticles\_Attractors). These will attract all particles to them with an acceleration depende…

---

## [Bug in textBounds method?](https://discourse.processing.org/t/bug-in-textbounds-method/23541)

<div class="topic-metadata">

**Author:** [@mgs](https://discourse.processing.org/u/mgs)\
**Replies:** 0\
**Last updated:** [August 29, 2020, 3:18am UTC](https://discourse.processing.org/t/bug-in-textbounds-method/23541 "2020-08-29T03:18:40Z")

</div>

Hi, Please see this p5.js sketch: https://editor.p5js.org/wimpo/sketches/gSt5JCJLG I have figured out the letter ‘f’ causes the font.textBounds method to render incorrectly when using the IBM Plex font. The top two bo…

---

## [Automatically turn on / off Mobile data connection](https://discourse.processing.org/t/automatically-turn-on-off-mobile-data-connection/23479)

<div class="topic-metadata">

**Author:** [@anthony20](https://discourse.processing.org/u/anthony20)\
**Replies:** 4\
**Last updated:** [August 28, 2020, 10:04pm UTC](https://discourse.processing.org/t/automatically-turn-on-off-mobile-data-connection/23479 "2020-08-28T22:04:59Z")

</div>

Hello, I am trying to make an application that allows activating and deactivating the mobile connection to the Internet in order to change IP I have found code but it doesn’t work right. This line gives an error: setM…

---

## [Trying to eliminate draw flicker](https://discourse.processing.org/t/trying-to-eliminate-draw-flicker/23530)

<div class="topic-metadata">

**Author:** [@pandl](https://discourse.processing.org/u/pandl)\
**Replies:** 5\
**Last updated:** [August 28, 2020, 9:00pm UTC](https://discourse.processing.org/t/trying-to-eliminate-draw-flicker/23530 "2020-08-28T21:00:22Z")

</div>

Thank you for reading this. I had this working reasonably well several months ago but I must have forgotten to save the project. I had the moon orbiting the earth and the earth orbiting the sun with minimal flicker. I’v…

---

## [Sometimes can't access classes outside of main .pde file](https://discourse.processing.org/t/sometimes-cant-access-classes-outside-of-main-pde-file/23535)

<div class="topic-metadata">

**Author:** [@usr-pyth](https://discourse.processing.org/u/usr-pyth)\
**Replies:** 3\
**Last updated:** [August 28, 2020, 8:29pm UTC](https://discourse.processing.org/t/sometimes-cant-access-classes-outside-of-main-pde-file/23535 "2020-08-28T20:29:19Z")

</div>

I’m making a Processing example of boids, and I have a main boids.pde file and a boid\_class.pde file. I have a class Boid in the boid\_class.pde file that I’m unable to access from boids.pde. How do I fix this?

---

## [Creating a light source in 2D world](https://discourse.processing.org/t/creating-a-light-source-in-2d-world/23528)

<div class="topic-metadata">

**Author:** [@xSimas](https://discourse.processing.org/u/xSimas)\
**Replies:** 3\
**Last updated:** [August 28, 2020, 5:30pm UTC](https://discourse.processing.org/t/creating-a-light-source-in-2d-world/23528 "2020-08-28T17:30:19Z")

</div>

Hi. I’m trying to create a light source in 2D. As an example, take a game character in 2D world that is holding a torch in a dark cave and there’s some area around him that’s fully lit up and then it gets darker (as the …

---

## [That's strange! Detect mouse inside a box?](https://discourse.processing.org/t/thats-strange-detect-mouse-inside-a-box/23443)

<div class="topic-metadata">

**Author:** [@HumanoidX](https://discourse.processing.org/u/HumanoidX)\
**Replies:** 10\
**Last updated:** [August 28, 2020, 12:41pm UTC](https://discourse.processing.org/t/thats-strange-detect-mouse-inside-a-box/23443 "2020-08-28T12:41:34Z")

</div>

I remember that I did that in a Periodic Table program before, my Dad accidentally deleted the D: drive in my computer and everything inside got lost. This is my code: boolean mouseIsBetween(float x1,float y1,float x2,…

---

## [Mandelbub Shader Sketch in JRubyArt](https://discourse.processing.org/t/mandelbub-shader-sketch-in-jrubyart/23518)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 3\
**Last updated:** [August 28, 2020, 11:34am UTC](https://discourse.processing.org/t/mandelbub-shader-sketch-in-jrubyart/23518 "2020-08-28T11:34:55Z")

</div>

There was a question how to plot a mandelbub on the forum, I found a shadertoy sketch and converted it to run with JRubyArt, here is the sketch run from the Atom editor:- Frame rate (30 fps) was essentially the same w…

---

## [Intervals visible using perlin noise and curveVertex](https://discourse.processing.org/t/intervals-visible-using-perlin-noise-and-curvevertex/23532)

<div class="topic-metadata">

**Author:** [@benf](https://discourse.processing.org/u/benf)\
**Replies:** 4\
**Last updated:** [August 28, 2020, 11:02am UTC](https://discourse.processing.org/t/intervals-visible-using-perlin-noise-and-curvevertex/23532 "2020-08-28T11:02:20Z")

</div>

Hi I was trying to use perlin noise for the first time using it to gently nudge some coordinates every interval along the y-axis and connecting those with curveVertex. When I looked at the image I saw those intervals w…

---

## [strokeWeight() acting strangely with FX2D](https://discourse.processing.org/t/strokeweight-acting-strangely-with-fx2d/23423)

<div class="topic-metadata">

**Author:** [@ketchupmustard](https://discourse.processing.org/u/ketchupmustard)\
**Replies:** 2\
**Last updated:** [August 28, 2020, 8:16am UTC](https://discourse.processing.org/t/strokeweight-acting-strangely-with-fx2d/23423 "2020-08-28T08:16:06Z")

</div>

Hey y’all. I was gonna post my code but I noticed it’s resolved once I get rid of FX2D in my fullscreen() declaration. Basically I couldn’t seem to selectively change the strokeWeight - I couldn’t change certain elemen…

---

## [How to use the site-packages folder to share Python modules/packages between sketches](https://discourse.processing.org/t/how-to-use-the-site-packages-folder-to-share-python-modules-packages-between-sketches/23452)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 0\
**Last updated:** [August 23, 2020, 10:12pm UTC](https://discourse.processing.org/t/how-to-use-the-site-packages-folder-to-share-python-modules-packages-between-sketches/23452 "2020-08-23T22:12:54Z")

</div>

I have heard of this many times but @berin was the one friend who made me try it at last. Inside yoursketchbook/libraries folder (Processing/libraries on Mac and Windows) you can have a site-packages folder containing “…

---

## [Trying to call a function from one class to another. Worked until I made created an array of the Class](https://discourse.processing.org/t/trying-to-call-a-function-from-one-class-to-another-worked-until-i-made-created-an-array-of-the-class/23468)

<div class="topic-metadata">

**Author:** [@BackTo](https://discourse.processing.org/u/BackTo)\
**Replies:** 4\
**Last updated:** [August 27, 2020, 9:05pm UTC](https://discourse.processing.org/t/trying-to-call-a-function-from-one-class-to-another-worked-until-i-made-created-an-array-of-the-class/23468 "2020-08-27T21:05:50Z")

</div>

Hi, I’ve probably not described the problem in the title properly. The error I get is ‘sx cannot be resolved or is not a field’ Me again. I’m adapting an old sketch just as a practice tool to help cement the various c…

---

## [Tramontana Multitouch Event](https://discourse.processing.org/t/tramontana-multitouch-event/23497)

<div class="topic-metadata">

**Author:** [@Hyperion65](https://discourse.processing.org/u/Hyperion65)\
**Replies:** 5\
**Last updated:** [August 27, 2020, 5:59pm UTC](https://discourse.processing.org/t/tramontana-multitouch-event/23497 "2020-08-27T17:59:57Z")

</div>

I hope someone has experience with the Tramontana library for Processing. While normal Touch recognition seems to work well, it seems I am unable to get the values for multitouch, All the other values are accessible, bu…

---

## [Get average heading](https://discourse.processing.org/t/get-average-heading/23483)

<div class="topic-metadata">

**Author:** [@TimoL](https://discourse.processing.org/u/TimoL)\
**Replies:** 8\
**Last updated:** [August 27, 2020, 4:41pm UTC](https://discourse.processing.org/t/get-average-heading/23483 "2020-08-27T16:41:04Z")

</div>

I have another maths/coding question. Im trying to figure out the average heading of an array of PVectors. At first I tried adding up the heading values and dividing that by the count. But there are scenarios where th…

---

## [How to Plot a Mandelbulb](https://discourse.processing.org/t/how-to-plot-a-mandelbulb/23490)

<div class="topic-metadata">

**Author:** [@rubbs](https://discourse.processing.org/u/rubbs)\
**Replies:** 12\
**Last updated:** [August 27, 2020, 2:25pm UTC](https://discourse.processing.org/t/how-to-plot-a-mandelbulb/23490 "2020-08-27T14:25:42Z")

</div>

Hello, I am trying to recreate the mandelbulb in processing (a 3D version of the mandelbrot set). I have looked through multiple sites for the equations to plot but they are different depending on the site. I am also st…

---

## [Processing version-3 is not working with Windows 10](https://discourse.processing.org/t/processing-version-3-is-not-working-with-windows-10/23521)

<div class="topic-metadata">

**Author:** [@Sreejith](https://discourse.processing.org/u/Sreejith)\
**Replies:** 0\
**Last updated:** [August 27, 2020, 10:55am UTC](https://discourse.processing.org/t/processing-version-3-is-not-working-with-windows-10/23521 "2020-08-27T10:55:39Z")

</div>

Processing 2.1 is working fine with Windows10 in my org domain environment.Unfortunately latest version is not working with Windows 10. We are calling application from local network share.Its receiving code but no output…

---

## [Trying to play one random video after another in one screen](https://discourse.processing.org/t/trying-to-play-one-random-video-after-another-in-one-screen/11418)

<div class="topic-metadata">

**Author:** [@pelinkiliboz](https://discourse.processing.org/u/pelinkiliboz)\
**Replies:** 7\
**Last updated:** [August 27, 2020, 8:13am UTC](https://discourse.processing.org/t/trying-to-play-one-random-video-after-another-in-one-screen/11418 "2020-08-27T08:13:59Z")

</div>

Hello! I’m fairly new to programming and for my graduation project I’m trying to create a sketch on p5js that plays one random video after another from an array of videos. I can’t seem to figure out the way to play the…

---

## [Problem with Selection Sort?](https://discourse.processing.org/t/problem-with-selection-sort/23506)

<div class="topic-metadata">

**Author:** [@Brucef](https://discourse.processing.org/u/Brucef)\
**Replies:** 2\
**Last updated:** [August 27, 2020, 7:32am UTC](https://discourse.processing.org/t/problem-with-selection-sort/23506 "2020-08-27T07:32:28Z")

</div>

The Selection Sort coded below does not sort correctly. The numbers 7,66,5,40,33,99 are entered into an array called nums\[ \]. When the program is run they do not sort from low to high? Certain sequences will sort, such…

---

## [Problem with wraparound when using beginShape()](https://discourse.processing.org/t/problem-with-wraparound-when-using-beginshape/23511)

<div class="topic-metadata">

**Author:** [@mruts](https://discourse.processing.org/u/mruts)\
**Replies:** 0\
**Last updated:** [August 26, 2020, 9:39pm UTC](https://discourse.processing.org/t/problem-with-wraparound-when-using-beginshape/23511 "2020-08-26T21:39:45Z")

</div>

Hi, I’m trying to adapt this code (from Daniel Shiffman). It uses an image to generate a flow field, then draw lines following the field. The issue I’m having (I think) is in void borders() in the Vehicle class. When th…

---

## [How do you uninstall processing from RPi4?](https://discourse.processing.org/t/how-do-you-uninstall-processing-from-rpi4/23494)

<div class="topic-metadata">

**Author:** [@sealyons](https://discourse.processing.org/u/sealyons)\
**Replies:** 9\
**Last updated:** [August 26, 2020, 6:39pm UTC](https://discourse.processing.org/t/how-do-you-uninstall-processing-from-rpi4/23494 "2020-08-26T18:39:01Z")

</div>

I have a issue where it appears Processing somehow got installed twice and I need to uninstall it and reinstall it. When I create a sketch that tries to import processing.io (so I can get acess to GPIO) I get an error m…

---

## [Collision shape after rotate](https://discourse.processing.org/t/collision-shape-after-rotate/23426)

<div class="topic-metadata">

**Author:** [@NoName](https://discourse.processing.org/u/NoName)\
**Replies:** 1\
**Last updated:** [August 26, 2020, 8:29pm UTC](https://discourse.processing.org/t/collision-shape-after-rotate/23426 "2020-08-26T20:29:19Z")

</div>

Please explain to me how you can check the collision of rectangular shapes after they have been rotated. Question number 2. How to correctly get the vertex of the shape after rotation? I have after getVertex() a point …

---

## [Rendering issues when not using APDE (PShape)](https://discourse.processing.org/t/rendering-issues-when-not-using-apde-pshape/22852)

<div class="topic-metadata">

**Author:** [@Mesalcode](https://discourse.processing.org/u/Mesalcode)\
**Replies:** 18\
**Last updated:** [August 26, 2020, 12:55pm UTC](https://discourse.processing.org/t/rendering-issues-when-not-using-apde-pshape/22852 "2020-08-26T12:55:30Z")

</div>

When using PShapes in Processing, I ran in the following issue: PShape cubeShape; PShape secondaryShape; PImage cubeImage; PImage blank; float rotationX; float rotationY; float sX, sY; int childs; PFont questionFont, o…

---

## [Shows loading when i run index.html on browser](https://discourse.processing.org/t/shows-loading-when-i-run-index-html-on-browser/23485)

<div class="topic-metadata">

**Author:** [@iamgsshetty](https://discourse.processing.org/u/iamgsshetty)\
**Replies:** 2\
**Last updated:** [August 26, 2020, 11:12am UTC](https://discourse.processing.org/t/shows-loading-when-i-run-index-html-on-browser/23485 "2020-08-26T11:12:34Z")

</div>

function setup() { createCanvas(400, 400); video=createCapture(VIDEO); video.hide(); } function draw() { background(220); image(video,0,0); } output:-

---

## [Want to store data from array to file in p5.js](https://discourse.processing.org/t/want-to-store-data-from-array-to-file-in-p5-js/23498)

<div class="topic-metadata">

**Author:** [@iamgsshetty](https://discourse.processing.org/u/iamgsshetty)\
**Replies:** 1\
**Last updated:** [August 26, 2020, 8:21am UTC](https://discourse.processing.org/t/want-to-store-data-from-array-to-file-in-p5-js/23498 "2020-08-26T08:21:06Z")

</div>

let video; let posNet; let pose; let skeleton; var a=0,b=0,c=0; var rec\_pose=\[\]; var rec\_skeleton=\[\]; var fs=require(‘fs’) function setup() { createCanvas(1400, 700); video=createCapture(VIDEO); video.hide(); …

[Previous page](https://discourse.processing.org/latest.md?page=310)

[Next page](https://discourse.processing.org/latest.md?page=312)
