# Latest

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

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

**Page:** 360

---

## [Storing Files in a Folder](https://discourse.processing.org/t/storing-files-in-a-folder/20265)

<div class="topic-metadata">

**Author:** [@Jack](https://discourse.processing.org/u/Jack)\
**Replies:** 3\
**Last updated:** [April 29, 2020, 1:56pm UTC](https://discourse.processing.org/t/storing-files-in-a-folder/20265 "2020-04-29T13:56:34Z")

</div>

Hello, I am working on a project currently where I have about 80 images to use. I would like all of these images to be in an array. As this number of images makes the files look cluttered, I would like to be able to sto…

---

## [How I save a picture in SVG?](https://discourse.processing.org/t/how-i-save-a-picture-in-svg/20247)

<div class="topic-metadata">

**Author:** [@christiank79](https://discourse.processing.org/u/christiank79)\
**Replies:** 2\
**Last updated:** [April 29, 2020, 11:21am UTC](https://discourse.processing.org/t/how-i-save-a-picture-in-svg/20247 "2020-04-29T11:21:59Z")

</div>

Hello, I don’t know how to save a picture in SVG, the coding send me an error. Can you help me? Thank you. Christian add\_library('svg') # import processing.svg ''' portrait\_lines\_black Jim Bumgardner 2-25-2000 ''' …

---

## [Using Hexidecimal colors from a table (BEGINNER)](https://discourse.processing.org/t/using-hexidecimal-colors-from-a-table-beginner/19958)

<div class="topic-metadata">

**Author:** [@BenEvans](https://discourse.processing.org/u/BenEvans)\
**Replies:** 2\
**Last updated:** [April 29, 2020, 9:32am UTC](https://discourse.processing.org/t/using-hexidecimal-colors-from-a-table-beginner/19958 "2020-04-29T09:32:07Z")

</div>

Very basic question about how to pull hexi colors from a table. I want to have a bunch of six-character, regular ol’ hexidecimal colors in a column and use them to color my circles or lines or whatever. But it seems that…

---

## [Why am I getting InvocationTargetException?](https://discourse.processing.org/t/why-am-i-getting-invocationtargetexception/19917)

<div class="topic-metadata">

**Author:** [@Hypercube](https://discourse.processing.org/u/Hypercube)\
**Replies:** 1\
**Last updated:** [April 29, 2020, 5:11am UTC](https://discourse.processing.org/t/why-am-i-getting-invocationtargetexception/19917 "2020-04-29T05:11:05Z")

</div>

The code (it’s supposed to draw traffic lights: 1st a rectangle then 3 colored circles in it. The circles all start out as gray) final int windowWidth = 480; final int windowHeight = windowWidth; int timer; //final fl…

---

## [Cambiar la imagen de "acerca de" de Processing](https://discourse.processing.org/t/cambiar-la-imagen-de-acerca-de-de-processing/20154)

<div class="topic-metadata">

**Author:** [@jotajotacv](https://discourse.processing.org/u/jotajotacv)\
**Replies:** 3\
**Last updated:** [April 29, 2020, 12:14am UTC](https://discourse.processing.org/t/cambiar-la-imagen-de-acerca-de-de-processing/20154 "2020-04-29T00:14:24Z")

</div>

Buenas tardes a todos de nuevo. Quisiera saber si es posible cambiar la imagen que aparece al comienzo cuando se inicia Processing. Parece que se encuentra en Processing\>lib\>about-1x (2x).png. Quisiera que por ejemplo …

---

## [Help on reset draw()](https://discourse.processing.org/t/help-on-reset-draw/20110)

<div class="topic-metadata">

**Author:** [@random\_programmer](https://discourse.processing.org/u/random_programmer)\
**Replies:** 7\
**Last updated:** [April 28, 2020, 11:11pm UTC](https://discourse.processing.org/t/help-on-reset-draw/20110 "2020-04-28T23:11:30Z")

</div>

Hello there, here is my code for a tic tac toe game. How can I reset the game by pressing the reset button? I only want to reset draw(). Is there any way to do this? int rows = 3; int cols = 3; int \[\] \[\] matrix = new …

---

## [How do you find the latitude and longitude of a image map when hovering or clicking the mouse?](https://discourse.processing.org/t/how-do-you-find-the-latitude-and-longitude-of-a-image-map-when-hovering-or-clicking-the-mouse/20063)

<div class="topic-metadata">

**Author:** [@Stage1](https://discourse.processing.org/u/Stage1)\
**Replies:** 6\
**Last updated:** [April 28, 2020, 10:03pm UTC](https://discourse.processing.org/t/how-do-you-find-the-latitude-and-longitude-of-a-image-map-when-hovering-or-clicking-the-mouse/20063 "2020-04-28T22:03:40Z")

</div>

Hi, i would like to know if there is a way to find the coordinates of an image when clicked on a specific area on the image or when hovered over with a mouse.

---

## [Image() is slow, are there any alternatives?](https://discourse.processing.org/t/image-is-slow-are-there-any-alternatives/20146)

<div class="topic-metadata">

**Author:** [@KevinWho](https://discourse.processing.org/u/KevinWho)\
**Replies:** 24\
**Last updated:** [April 28, 2020, 7:51pm UTC](https://discourse.processing.org/t/image-is-slow-are-there-any-alternatives/20146 "2020-04-28T19:51:18Z")

</div>

I am rendering about 1024 images, they have to be scaled up, I store the scaled-up version so it is a bit faster. these images are covering the whole screen, and I would like to get at least 60 fps when rendering this. I…

---

## [saveFrame() not saving the whole frame in P3D](https://discourse.processing.org/t/saveframe-not-saving-the-whole-frame-in-p3d/20244)

<div class="topic-metadata">

**Author:** [@ivaneo](https://discourse.processing.org/u/ivaneo)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 6:57pm UTC](https://discourse.processing.org/t/saveframe-not-saving-the-whole-frame-in-p3d/20244 "2020-04-28T18:57:41Z")

</div>

Hello, I have a 1920x1080p P3D sketch that I want to export, however, when I use saveFrame(), it only saves what is appearing on the screen, so I get a frame that has a part of it cut off and black. I have a 1366x768p di…

---

## [How to use length of a string for collision detection](https://discourse.processing.org/t/how-to-use-length-of-a-string-for-collision-detection/20218)

<div class="topic-metadata">

**Author:** [@Cybernet](https://discourse.processing.org/u/Cybernet)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 6:08pm UTC](https://discourse.processing.org/t/how-to-use-length-of-a-string-for-collision-detection/20218 "2020-04-28T18:08:42Z")

</div>

So I have this code that displays a string, and whenever the mouse hovers over it, then it changes colour. if (mouseX \> 40 && mouseX \< text.length() \* 17) fill(0); The text size is 25. However, it seems that text.l…

---

## [PShape get Children target name afterwards](https://discourse.processing.org/t/pshape-get-children-target-name-afterwards/20189)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 4:22pm UTC](https://discourse.processing.org/t/pshape-get-children-target-name-afterwards/20189 "2020-04-28T16:22:43Z")

</div>

Hi, i’m working on the next iteration of my corona virus data viz apllication and got stuck in a PShape issue. Is there a way to get PShape children target names? Above is the current situation of the dashboard. The i…

---

## [Android Processing app playing sequence of Youtube videos](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180)

<div class="topic-metadata">

**Author:** [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)\
**Replies:** 36\
**Last updated:** [April 28, 2020, 4:10pm UTC](https://discourse.processing.org/t/android-processing-app-playing-sequence-of-youtube-videos/20180 "2020-04-28T16:10:28Z")

</div>

hello I would like to play a video in the processing app on Android “https://play.google.com/store/apps/details?id=com.calsignlabs.apde” in my app but I don’t know how to add a library can someone help me please?

---

## [Problem by receiving datas in Arduino? Or problem by sending datas to Arduino?](https://discourse.processing.org/t/problem-by-receiving-datas-in-arduino-or-problem-by-sending-datas-to-arduino/20202)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 11:05am UTC](https://discourse.processing.org/t/problem-by-receiving-datas-in-arduino-or-problem-by-sending-datas-to-arduino/20202 "2020-04-28T11:05:33Z")

</div>

Continuing the discussion from RE: My program getting slower when I write datas on Serial Port: Hello all, I send 5 datas from Processing to Arduino and I re write those datas with Arduino into an other serial port tha…

---

## [NSWindow drag regions should only be invalidated on the Main Thread!](https://discourse.processing.org/t/nswindow-drag-regions-should-only-be-invalidated-on-the-main-thread/20233)

<div class="topic-metadata">

**Author:** [@igormakovsky](https://discourse.processing.org/u/igormakovsky)\
**Replies:** 0\
**Last updated:** [April 28, 2020, 10:38am UTC](https://discourse.processing.org/t/nswindow-drag-regions-should-only-be-invalidated-on-the-main-thread/20233 "2020-04-28T10:38:04Z")

</div>

Hello! I am new to processing and just learn the basics. I’ve encountered strange problem with initializing P3D. Launching 3d sketch takes almost a minute (p2d launches in a few seconds) + puts this in terminal: java\[5…

---

## [G4P modal dialog behavior?](https://discourse.processing.org/t/g4p-modal-dialog-behavior/20188)

<div class="topic-metadata">

**Author:** [@ed\_from\_maine](https://discourse.processing.org/u/ed_from_maine)\
**Replies:** 3\
**Last updated:** [April 28, 2020, 9:14am UTC](https://discourse.processing.org/t/g4p-modal-dialog-behavior/20188 "2020-04-28T09:14:57Z")

</div>

I was wondering if there was a way to get a G4P secondary window to behave like a modal dialog-- I would like to create code that would require the user to remain in the window, and to provide an answer, before the windo…

---

## [\[SOLUCIONADO\] Problemas enviando datos desde Processing a Arduino a través del Serial Port](https://discourse.processing.org/t/solucionado-problemas-enviando-datos-desde-processing-a-arduino-a-traves-del-serial-port/20168)

<div class="topic-metadata">

**Author:** [@bacum](https://discourse.processing.org/u/bacum)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 6:25am UTC](https://discourse.processing.org/t/solucionado-problemas-enviando-datos-desde-processing-a-arduino-a-traves-del-serial-port/20168 "2020-04-28T06:25:53Z")

</div>

Hola a tod@s! Soy nuevo en Processing. Escribo aquí esperando que alguien pueda echarme una mano;) Estoy intentando comunicar 2 módulos XBEE S1 entre un ordenador y un Arduino Mega, en modo AT. La configuración de los …

---

## [\[SOLVED\] Problems sending data from Processing to Arduino through serial port](https://discourse.processing.org/t/solved-problems-sending-data-from-processing-to-arduino-through-serial-port/20138)

<div class="topic-metadata">

**Author:** [@bacum](https://discourse.processing.org/u/bacum)\
**Replies:** 10\
**Last updated:** [April 28, 2020, 6:22am UTC](https://discourse.processing.org/t/solved-problems-sending-data-from-processing-to-arduino-through-serial-port/20138 "2020-04-28T06:22:00Z")

</div>

Hello everybody! I’m newbie in Processing. I’m writing here hoping that someone will be able to help me… Thanks in advance;) I’m trying to communicate two XBEE S1 modules between the computer and an Arduino Mega, in AT…

---

## [Capturer.start() from CCapture library causing my sketch animation to be jumpy](https://discourse.processing.org/t/capturer-start-from-ccapture-library-causing-my-sketch-animation-to-be-jumpy/20217)

<div class="topic-metadata">

**Author:** [@Darkmatterial](https://discourse.processing.org/u/Darkmatterial)\
**Replies:** 0\
**Last updated:** [April 28, 2020, 1:29am UTC](https://discourse.processing.org/t/capturer-start-from-ccapture-library-causing-my-sketch-animation-to-be-jumpy/20217 "2020-04-28T01:29:31Z")

</div>

Hi! I have a p5.js sketch I want to create a .gif from using CCapture library the problem is that when I run the sketch the final video is all jumpy in the drawGrid() object, does anyone have a clue why this is happenin…

---

## [Porting a 3D Brownian Motion to Python mode](https://discourse.processing.org/t/porting-a-3d-brownian-motion-to-python-mode/20144)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 1\
**Last updated:** [April 28, 2020, 2:12am UTC](https://discourse.processing.org/t/porting-a-3d-brownian-motion-to-python-mode/20144 "2020-04-28T02:12:34Z")

</div>

We all know @GoToLoop is such a wonderful and generous mega-blast of a fellow at the forums, so I always look at his postings, then today I was looking at an example shown at https://discourse.processing.org/t/linkedlist…

---

## [Pixelate Ellipse Shape](https://discourse.processing.org/t/pixelate-ellipse-shape/20148)

<div class="topic-metadata">

**Author:** [@AndJ](https://discourse.processing.org/u/AndJ)\
**Replies:** 7\
**Last updated:** [April 27, 2020, 11:49pm UTC](https://discourse.processing.org/t/pixelate-ellipse-shape/20148 "2020-04-27T23:49:03Z")

</div>

As I was working through a project, I was wondering if there was a way to make a “pixelated ellipse” in Processing (I have provided an example of what I was thinking). I don’t want to have to import an image.

---

## [Regenerating a Floor Plan in Python](https://discourse.processing.org/t/regenerating-a-floor-plan-in-python/19989)

<div class="topic-metadata">

**Author:** [@Mits](https://discourse.processing.org/u/Mits)\
**Replies:** 10\
**Last updated:** [April 27, 2020, 11:37pm UTC](https://discourse.processing.org/t/regenerating-a-floor-plan-in-python/19989 "2020-04-27T23:37:15Z")

</div>

I have a floor plan. I want to take the image and reproduce the same by exchanging zones and optimize the floor layout. I have to code in Python. I tried using Genetic Algorithm but I didn’t get clarity on how to plot th…

---

## [Easy question about if and function](https://discourse.processing.org/t/easy-question-about-if-and-function/20205)

<div class="topic-metadata">

**Author:** [@thom](https://discourse.processing.org/u/thom)\
**Replies:** 5\
**Last updated:** [April 27, 2020, 10:57pm UTC](https://discourse.processing.org/t/easy-question-about-if-and-function/20205 "2020-04-27T22:57:08Z")

</div>

I’m trying to make a simple tic tac toe game in processing. I don’t understand why the functions don’t follow the if() statements. CODE: int counter=0; void setup(){ size(500,500); background(255); strokeWeight(15); li…

---

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

<div class="topic-metadata">

**Author:** [@Yom](https://discourse.processing.org/u/Yom)\
**Replies:** 5\
**Last updated:** [April 27, 2020, 10:47pm UTC](https://discourse.processing.org/t/nested-canvases/20033 "2020-04-27T22:47:29Z")

</div>

Hello, I’m new to p5.js, javascript, etc… I would like to have a canvas inside another canvas. Here is my current code, it works but is it a bad idea ? And if so, why ? const sketch1 = p5 =\> { p5.setup = () =\> { …

---

## [Reduce output latency set to 80 msec for Windows 10?](https://discourse.processing.org/t/reduce-output-latency-set-to-80-msec-for-windows-10/19988)

<div class="topic-metadata">

**Author:** [@earp123](https://discourse.processing.org/u/earp123)\
**Replies:** 1\
**Last updated:** [April 27, 2020, 9:01pm UTC](https://discourse.processing.org/t/reduce-output-latency-set-to-80-msec-for-windows-10/19988 "2020-04-27T21:01:52Z")

</div>

Using AudioIn to grab the sound card but the default latency is causing a noticeable delay. Half the default, or 40ms would be great. Anyone know how to configure this, preferably on the processing side and not the Windo…

---

## [Variables from php to j5](https://discourse.processing.org/t/variables-from-php-to-j5/20153)

<div class="topic-metadata">

**Author:** [@goorny](https://discourse.processing.org/u/goorny)\
**Replies:** 2\
**Last updated:** [April 25, 2020, 11:51pm UTC](https://discourse.processing.org/t/variables-from-php-to-j5/20153 "2020-04-25T23:51:05Z")

</div>

Hello. I start" programing" in p5 few weeks ago. Last week try figure out one problem by reading refference , look tons from YT, and searching at forums. Small example: index.php \<?php $ble=blebleble ?\> index.js …

---

## [Arrays y objetos](https://discourse.processing.org/t/arrays-y-objetos/20054)

<div class="topic-metadata">

**Author:** [@Eduwu](https://discourse.processing.org/u/Eduwu)\
**Replies:** 1\
**Last updated:** [April 27, 2020, 7:58pm UTC](https://discourse.processing.org/t/arrays-y-objetos/20054 "2020-04-27T19:58:03Z")

</div>

Hola! Quiero intentar hacer un sketch en el cual tenga distintos filtros con pixels para la camara, pero quisiera que estos aparezcan aleatoriamente cada vez que presiono “C”, el problema es que no se como simplificar es…

---

## [Ball should change direction after touching edge of the frame](https://discourse.processing.org/t/ball-should-change-direction-after-touching-edge-of-the-frame/20207)

<div class="topic-metadata">

**Author:** [@julia1312](https://discourse.processing.org/u/julia1312)\
**Replies:** 3\
**Last updated:** [April 27, 2020, 2:42pm UTC](https://discourse.processing.org/t/ball-should-change-direction-after-touching-edge-of-the-frame/20207 "2020-04-27T14:42:38Z")

</div>

Hi! I am completely new in the world of programming! I have started my programming lessons recently and I am stuck with my homework. What I basically have to do is a moving ball. The ball should move with velocity 20 pix…

---

## [Make a object class with random size](https://discourse.processing.org/t/make-a-object-class-with-random-size/19901)

<div class="topic-metadata">

**Author:** [@PabloTryAnimations](https://discourse.processing.org/u/PabloTryAnimations)\
**Replies:** 3\
**Last updated:** [April 27, 2020, 11:47am UTC](https://discourse.processing.org/t/make-a-object-class-with-random-size/19901 "2020-04-27T11:47:29Z")

</div>

I’m trying to make the size random in an object class Peixe (designed with BeginShape, and moving with pop Matrix ). I tried with scale, but didn’t work. Please Could you help me? void setup() { size (1000, 800); p…

---

## [Creating a font in setup but getting error in draw that no font are loaded](https://discourse.processing.org/t/creating-a-font-in-setup-but-getting-error-in-draw-that-no-font-are-loaded/20195)

<div class="topic-metadata">

**Author:** [@Ayfri](https://discourse.processing.org/u/Ayfri)\
**Replies:** 4\
**Last updated:** [April 27, 2020, 8:42am UTC](https://discourse.processing.org/t/creating-a-font-in-setup-but-getting-error-in-draw-that-no-font-are-loaded/20195 "2020-04-27T08:42:39Z")

</div>

Hi ! I’m using this code to generate a font that and use it in my setup function : public void setup() { PFont font = createFont("Arial", 32); textFont(font); } And on my draw function I just do public void d…

---

## [Exceptions in random()](https://discourse.processing.org/t/exceptions-in-random/20187)

<div class="topic-metadata">

**Author:** [@Rahul](https://discourse.processing.org/u/Rahul)\
**Replies:** 2\
**Last updated:** [April 27, 2020, 1:58am UTC](https://discourse.processing.org/t/exceptions-in-random/20187 "2020-04-27T01:58:39Z")

</div>

Hello. Recently, I’ve been working on a sketch in which I need to line up circles in a random order. Basically, I have an array with all the x-coordinates of the circles, and I have a for loop in setup to display enough …

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

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