# Latest

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

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

**Page:** 354

---

## [Filling 1D noise optimally](https://discourse.processing.org/t/filling-1d-noise-optimally/20666)

<div class="topic-metadata">

**Author:** [@shinyogre](https://discourse.processing.org/u/shinyogre)\
**Replies:** 2\
**Last updated:** [May 9, 2020, 2:42pm UTC](https://discourse.processing.org/t/filling-1d-noise-optimally/20666 "2020-05-09T14:42:59Z")

</div>

I am generating vertices using perlin noise and making a shape out of them with beginShape() and endShape(). I am then scrolling to the left while generating more vertices on the right. https://editor.p5js.org/shinyogr…

---

## [Is the a "load all text files in a directory" (\*.txt) function in processing?](https://discourse.processing.org/t/is-the-a-load-all-text-files-in-a-directory-txt-function-in-processing/20507)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 4\
**Last updated:** [May 9, 2020, 12:36pm UTC](https://discourse.processing.org/t/is-the-a-load-all-text-files-in-a-directory-txt-function-in-processing/20507 "2020-05-09T12:36:50Z")

</div>

Hello All, I have a more general question. I have a data analysis program I have been working on that takes in .txt files using loadStrings(). Before I run the program I am manually reformatting the names of the .txt …

---

## [Missing Trail of Growing Circle](https://discourse.processing.org/t/missing-trail-of-growing-circle/20659)

<div class="topic-metadata">

**Author:** [@upobir](https://discourse.processing.org/u/upobir)\
**Replies:** 3\
**Last updated:** [May 9, 2020, 11:52am UTC](https://discourse.processing.org/t/missing-trail-of-growing-circle/20659 "2020-05-09T11:52:51Z")

</div>

Hello, I use processing for some hobby drawing. Today while doing such a thing I faced a weird situation. I have a circle that will grow as time passes on, in draw() I did not use any background() call, so this growing c…

---

## [Animating the loadImage function?](https://discourse.processing.org/t/animating-the-loadimage-function/20629)

<div class="topic-metadata">

**Author:** [@cuvner](https://discourse.processing.org/u/cuvner)\
**Replies:** 3\
**Last updated:** [May 9, 2020, 9:23am UTC](https://discourse.processing.org/t/animating-the-loadimage-function/20629 "2020-05-09T09:23:17Z")

</div>

Here is my code for a 3d spinning cube and using texture to lay images from an array, json file, to project on to the cube. The image update currently is at the sketch frame rate and I want to control the update speed b…

---

## [Do G4P GUI controls have to be global variables?](https://discourse.processing.org/t/do-g4p-gui-controls-have-to-be-global-variables/20636)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 2\
**Last updated:** [May 9, 2020, 8:57am UTC](https://discourse.processing.org/t/do-g4p-gui-controls-have-to-be-global-variables/20636 "2020-05-09T08:57:53Z")

</div>

I’m trying to use a GWinData to save data used by a child window. I thought I would be able to declare the controls used by the child window (buttons, droplists, etc.) inside the GWinData object, but it doesn’t seem to w…

---

## [How to work with TextBounds in instance mode](https://discourse.processing.org/t/how-to-work-with-textbounds-in-instance-mode/20654)

<div class="topic-metadata">

**Author:** [@murillazo](https://discourse.processing.org/u/murillazo)\
**Replies:** 2\
**Last updated:** [May 9, 2020, 7:23am UTC](https://discourse.processing.org/t/how-to-work-with-textbounds-in-instance-mode/20654 "2020-05-09T07:23:53Z")

</div>

Hi, I have the following problem, when I try to use textBounds on instance mode im not sure how to do it, is reporting me this error -\> Unable to get property ‘unitsPerEm’ of undefined or null reference. let name = "t…

---

## [Combining PoseNet with Daniel Shiffman's Fractal Trees Example to create leaves](https://discourse.processing.org/t/combining-posenet-with-daniel-shiffmans-fractal-trees-example-to-create-leaves/20532)

<div class="topic-metadata">

**Author:** [@yuinjann](https://discourse.processing.org/u/yuinjann)\
**Replies:** 10\
**Last updated:** [May 9, 2020, 5:46am UTC](https://discourse.processing.org/t/combining-posenet-with-daniel-shiffmans-fractal-trees-example-to-create-leaves/20532 "2020-05-09T05:46:50Z")

</div>

Hi! I’m trying to create a project with posenet and using Daniel Shiffman’s Coding Challenge #17: Fractal Trees - Space Colonization. Using his example, instead of the leaves generating randomly, I want them to only gen…

---

## [Weird behaviour with mouseX and mouseY](https://discourse.processing.org/t/weird-behaviour-with-mousex-and-mousey/20618)

<div class="topic-metadata">

**Author:** [@LinemanForTheCounty](https://discourse.processing.org/u/LinemanForTheCounty)\
**Replies:** 5\
**Last updated:** [May 8, 2020, 9:37pm UTC](https://discourse.processing.org/t/weird-behaviour-with-mousex-and-mousey/20618 "2020-05-08T21:37:47Z")

</div>

Whenever i retrieve mouseX and mouseY , mouseX returns as long decimal number and mouseY returns as a integer. (ex. \[340.32472970811324, 350\]). This is quite annoying as it broke one of my functions. Does anyone have a…

---

## [Trying to limit println()](https://discourse.processing.org/t/trying-to-limit-println/20379)

<div class="topic-metadata">

**Author:** [@Adi](https://discourse.processing.org/u/Adi)\
**Replies:** 5\
**Last updated:** [May 3, 2020, 8:23am UTC](https://discourse.processing.org/t/trying-to-limit-println/20379 "2020-05-03T08:23:08Z")

</div>

I am trying to run println(); once in an if statement, the if statement can be true for many frames, but the print(); should only run once. Many thanks, Adi

---

## [Coding question for trecking device](https://discourse.processing.org/t/coding-question-for-trecking-device/20385)

<div class="topic-metadata">

**Author:** [@kanktonk](https://discourse.processing.org/u/kanktonk)\
**Replies:** 0\
**Last updated:** [May 2, 2020, 11:38am UTC](https://discourse.processing.org/t/coding-question-for-trecking-device/20385 "2020-05-02T11:38:05Z")

</div>

Hey I try to use processing together with my old lego mindstorm roboter. I spend a lot of time to research how to combine them and finally found a code online which looked helpfull. But now i get this ERROR can somebody…

---

## [Nested function?](https://discourse.processing.org/t/nested-function/20639)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 5:59pm UTC](https://discourse.processing.org/t/nested-function/20639 "2020-05-08T17:59:24Z")

</div>

I am making my first steps in P5.js, and trying to translate some js to java code, but I don’t understand the function below. It seems some nested function. How can I translate this? let particles = \[\]; function draw()…

---

## [Confused. What can I do after learning Processing ? What could be the benefits of that?](https://discourse.processing.org/t/confused-what-can-i-do-after-learning-processing-what-could-be-the-benefits-of-that/20435)

<div class="topic-metadata">

**Author:** [@anon43149899](https://discourse.processing.org/u/anon43149899)\
**Replies:** 5\
**Last updated:** [May 7, 2020, 8:34pm UTC](https://discourse.processing.org/t/confused-what-can-i-do-after-learning-processing-what-could-be-the-benefits-of-that/20435 "2020-05-07T20:34:38Z")

</div>

This was cross-posted from reddit: https://www.reddit.com/r/girlsgonewired/comments/8l7cp4/thoughts\_on\_coding\_bootcamps/ The cross-post was actually by a spambot, but it was a good discussion so we are leaving it, sans …

---

## [Keeping an ellipse after being drawn](https://discourse.processing.org/t/keeping-an-ellipse-after-being-drawn/20589)

<div class="topic-metadata">

**Author:** [@CanGurbuz](https://discourse.processing.org/u/CanGurbuz)\
**Replies:** 3\
**Last updated:** [May 8, 2020, 4:50pm UTC](https://discourse.processing.org/t/keeping-an-ellipse-after-being-drawn/20589 "2020-05-08T16:50:14Z")

</div>

Hey everyone. I am trying to make a cursor for the map of the game I want to make. I want this cursor of the map like it is in APEX LEGENDS i.e there is a line from the top of the screen to the bottom for your MouseX po…

---

## [Testing embedding](https://discourse.processing.org/t/testing-embedding/20573)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 11:09am UTC](https://discourse.processing.org/t/testing-embedding/20573 "2020-05-08T11:09:28Z")

</div>

@jeremydouglass I was verifying if with embedding I could get rid of the zoom problem (When the Device Pixel Aspect Ratio is not exactly 1) But for some reason, the sketch doesn’t work at all here.

---

## [CAN bus library or CAN alternative](https://discourse.processing.org/t/can-bus-library-or-can-alternative/20553)

<div class="topic-metadata">

**Author:** [@jcduino](https://discourse.processing.org/u/jcduino)\
**Replies:** 3\
**Last updated:** [May 8, 2020, 10:25am UTC](https://discourse.processing.org/t/can-bus-library-or-can-alternative/20553 "2020-05-08T10:25:43Z")

</div>

Hello! I need to access a CAN Bus from my processing sketch. I have not found any processing library that can do it. I have tried it with java and I have not found anything either. I have a star topology with different…

---

## [Some sort of memory leak in Game of Life](https://discourse.processing.org/t/some-sort-of-memory-leak-in-game-of-life/20608)

<div class="topic-metadata">

**Author:** [@Hypercube](https://discourse.processing.org/u/Hypercube)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 7:35am UTC](https://discourse.processing.org/t/some-sort-of-memory-leak-in-game-of-life/20608 "2020-05-08T07:35:18Z")

</div>

I am coding the Game of Life. It works but there seems to be some sort of issue with the arrays. They grow to a ridiculous size (try drawing a glider and press R and the sizes will be printed to the console). This is odd…

---

## [Performance. Is there any way to make work faster?](https://discourse.processing.org/t/performance-is-there-any-way-to-make-work-faster/20183)

<div class="topic-metadata">

**Author:** [@kmorozov](https://discourse.processing.org/u/kmorozov)\
**Replies:** 3\
**Last updated:** [May 8, 2020, 6:02am UTC](https://discourse.processing.org/t/performance-is-there-any-way-to-make-work-faster/20183 "2020-05-08T06:02:24Z")

</div>

Hi all. I’m trying to study p5js and desided to rewrite some sketch from processing to p5js. Here it is - https://www.openprocessing.org/sketch/882019. Original tutorial in processing is here - https://timrodenbroeker.…

---

## [Confirm on Exit](https://discourse.processing.org/t/confirm-on-exit/20613)

<div class="topic-metadata">

**Author:** [@jamcdonald](https://discourse.processing.org/u/jamcdonald)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 5:21am UTC](https://discourse.processing.org/t/confirm-on-exit/20613 "2020-05-08T05:21:35Z")

</div>

I am trying to make a program where when the X button is clicked, the user is prompted Would you like to save before quitting? Save, Dont Save, Cancel. The problem is, I cant figure out how to cancel closing the window.…

---

## [Accessing an external camera](https://discourse.processing.org/t/accessing-an-external-camera/16628)

<div class="topic-metadata">

**Author:** [@nabhyaparmar](https://discourse.processing.org/u/nabhyaparmar)\
**Replies:** 6\
**Last updated:** [May 8, 2020, 1:17am UTC](https://discourse.processing.org/t/accessing-an-external-camera/16628 "2020-05-08T01:17:45Z")

</div>

Hi, I am fairly new to processing and I want to be able to access an external camera in my processing sketch. It is a DSLR Nikon D5100. I am not able to find the necessary source for this anywhere. Can someone please hel…

---

## [Starting Screen](https://discourse.processing.org/t/starting-screen/20472)

<div class="topic-metadata">

**Author:** [@Eduwu](https://discourse.processing.org/u/Eduwu)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 12:30am UTC](https://discourse.processing.org/t/starting-screen/20472 "2020-05-08T00:30:12Z")

</div>

Hola, soy principiante en processing y estoy haciendo un proyecto que involucra la librería vídeo, pero estoy teniendo algunos problemas. En primer lugar quiero hacer una pantalla de inicio para mi programa, pero la ima…

---

## [Multitouch with Windows 10](https://discourse.processing.org/t/multitouch-with-windows-10/20417)

<div class="topic-metadata">

**Author:** [@Gabe](https://discourse.processing.org/u/Gabe)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 12:19am UTC](https://discourse.processing.org/t/multitouch-with-windows-10/20417 "2020-05-08T00:19:59Z")

</div>

Has anyone managed to detect more than one touch at a time on a Windows 10 touchscreen device? I looked into the SMT library on github (https://github.com/vialab/SMT), but it seems very out of date and doesn’t work with …

---

## [Changing brightness in video](https://discourse.processing.org/t/changing-brightness-in-video/20524)

<div class="topic-metadata">

**Author:** [@cupofcalculus](https://discourse.processing.org/u/cupofcalculus)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 12:15am UTC](https://discourse.processing.org/t/changing-brightness-in-video/20524 "2020-05-08T00:15:00Z")

</div>

I know how to iterate over an image, finding the color of each pixel, and modifying it. Is there’s an easier method to adjust the brightness of a video, namely so that it doesn’t cause the video to lag?

---

## [Applying noSmooth() to a PImage](https://discourse.processing.org/t/applying-nosmooth-to-a-pimage/20193)

<div class="topic-metadata">

**Author:** [@AndJ](https://discourse.processing.org/u/AndJ)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 11:59pm UTC](https://discourse.processing.org/t/applying-nosmooth-to-a-pimage/20193 "2020-05-07T23:59:42Z")

</div>

I was working with a PImage (size 17x12 pixels), and trying to scale it up much larger. When I did this, it made the image blurry like it had anti-aliasing enabled. I know that the noSmooth() method aliases (turns off an…

---

## [How do I make an input box accept numbers only?](https://discourse.processing.org/t/how-do-i-make-an-input-box-accept-numbers-only/20572)

<div class="topic-metadata">

**Author:** [@Bassam](https://discourse.processing.org/u/Bassam)\
**Replies:** 9\
**Last updated:** [May 7, 2020, 10:26pm UTC](https://discourse.processing.org/t/how-do-i-make-an-input-box-accept-numbers-only/20572 "2020-05-07T22:26:43Z")

</div>

let x=createInput("", "number"); creates a textbox with tiny scrollbars to scroll through the numbers and can also have negative numbers. I want to create a textbox so that people can put in their age.

---

## [Awesome Android app for running processing apps (even allows 3D!)](https://discourse.processing.org/t/awesome-android-app-for-running-processing-apps-even-allows-3d/20569)

<div class="topic-metadata">

**Author:** [@adaptinnovative](https://discourse.processing.org/u/adaptinnovative)\
**Replies:** 3\
**Last updated:** [May 7, 2020, 7:58pm UTC](https://discourse.processing.org/t/awesome-android-app-for-running-processing-apps-even-allows-3d/20569 "2020-05-07T19:58:59Z")

</div>

There is an awesome app in the Google Play store that allows you to run processing code straight to your phone it even generates an APK and installs on your phone right away!!! It also has Watch and VR modes This is a…

---

## [Get plane from 3D model in Processing](https://discourse.processing.org/t/get-plane-from-3d-model-in-processing/20006)

<div class="topic-metadata">

**Author:** [@Nirav\_Meghani](https://discourse.processing.org/u/Nirav_Meghani)\
**Replies:** 9\
**Last updated:** [May 7, 2020, 4:02pm UTC](https://discourse.processing.org/t/get-plane-from-3d-model-in-processing/20006 "2020-05-07T16:02:00Z")

</div>

i have define 3d model and a plane in PShape. I want to get a plane with modification as shown in above image.

---

## [Saving the sketch through code](https://discourse.processing.org/t/saving-the-sketch-through-code/20097)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 5\
**Last updated:** [May 7, 2020, 3:49pm UTC](https://discourse.processing.org/t/saving-the-sketch-through-code/20097 "2020-05-07T15:49:42Z")

</div>

Hi, Short question: Is it possible to script a Processing sketch to make a copy of itself through code? Reason: I keep running into an issue where I go back through some images and videos I’ve generated with processi…

---

## [Help with serial communication](https://discourse.processing.org/t/help-with-serial-communication/20103)

<div class="topic-metadata">

**Author:** [@ed\_from\_maine](https://discourse.processing.org/u/ed_from_maine)\
**Replies:** 8\
**Last updated:** [May 7, 2020, 3:23pm UTC](https://discourse.processing.org/t/help-with-serial-communication/20103 "2020-05-07T15:23:40Z")

</div>

Hi, First post. I’m an intermediate level programmer but relatively new to Processing. I have a Processing program on my desktop that sends a sequence of commands to an Arduino board by the serial port (actually a Teens…

---

## [Polygon collision mask](https://discourse.processing.org/t/polygon-collision-mask/19513)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 3\
**Last updated:** [May 7, 2020, 3:15pm UTC](https://discourse.processing.org/t/polygon-collision-mask/19513 "2020-05-07T15:15:13Z")

</div>

How to create from two polygons one polygon, where it will be solid, where will be collsions, if the object moves on that direction with speed. Shift 2nd shape, to the target move position by speed and direction Create…

---

## [SaveFrame function exporting black frames](https://discourse.processing.org/t/saveframe-function-exporting-black-frames/20582)

<div class="topic-metadata">

**Author:** [@hcanndesign](https://discourse.processing.org/u/hcanndesign)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 3:08pm UTC](https://discourse.processing.org/t/saveframe-function-exporting-black-frames/20582 "2020-05-07T15:08:15Z")

</div>

Hi all, This is my first attempt at processing and I’m trying to export the frames of a sketch I’ve created. Unfortunately all the frames come out as a black png with no other content. This is the code I’m using in my s…

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

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