# Latest

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

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

**Page:** 150

---

## [Discussion regarding "Native Python and Processing" GSoC 2022 Idea](https://discourse.processing.org/t/discussion-regarding-native-python-and-processing-gsoc-2022-idea/35876)

<div class="topic-metadata">

**Author:** [@Geeky](https://discourse.processing.org/u/Geeky)\
**Replies:** 1\
**Last updated:** [March 22, 2022, 7:27am UTC](https://discourse.processing.org/t/discussion-regarding-native-python-and-processing-gsoc-2022-idea/35876 "2022-03-22T07:27:42Z")

</div>

Hi everyone, I’m a junior computer graphics and research engineer. With gsoc 2022 giving a chance to non-student developers to get connected with open source communities, I want to contribute to Processing Foundation an…

---

## [Why do I get a NullPointerException](https://discourse.processing.org/t/why-do-i-get-a-nullpointerexception/35711)

<div class="topic-metadata">

**Author:** [@LauraDob](https://discourse.processing.org/u/LauraDob)\
**Replies:** 7\
**Last updated:** [March 21, 2022, 3:05pm UTC](https://discourse.processing.org/t/why-do-i-get-a-nullpointerexception/35711 "2022-03-21T15:05:10Z")

</div>

When I run it, I have NullPointerException \[0\] “COM5”… How do I fix it? This is the code import processing.serial.\*; Serial myPort; // Create object from Serial class int val = 0; int oldval = 0; int numFrames = 2; …

---

## [Instance mode : accessing \`p5\` functions in an external class](https://discourse.processing.org/t/instance-mode-accessing-p5-functions-in-an-external-class/35875)

<div class="topic-metadata">

**Author:** [@sylcha](https://discourse.processing.org/u/sylcha)\
**Replies:** 6\
**Last updated:** [March 21, 2022, 1:02pm UTC](https://discourse.processing.org/t/instance-mode-accessing-p5-functions-in-an-external-class/35875 "2022-03-21T13:02:02Z")

</div>

Hi everyone ! I’m using p5.js in a project (code here). I have to use p5.js in instance mode and attach the p5 object to the canvas which is just working fine so far. Now I would like to create a class in a separate fo…

---

## [Issue with PShape with a cut off area and a changing vertex](https://discourse.processing.org/t/issue-with-pshape-with-a-cut-off-area-and-a-changing-vertex/35859)

<div class="topic-metadata">

**Author:** [@BleiEnte](https://discourse.processing.org/u/BleiEnte)\
**Replies:** 0\
**Last updated:** [March 20, 2022, 12:06pm UTC](https://discourse.processing.org/t/issue-with-pshape-with-a-cut-off-area-and-a-changing-vertex/35859 "2022-03-20T12:06:20Z")

</div>

Hey, I’d like to wirte a simple sketch where some vertices of a shape with an cut off are changed. Unfortunately, it doesn’t work as expected. If I choose the default renderer, the shape is not closed as intended (see t…

---

## [How to export it to an SVG file, can someone help?](https://discourse.processing.org/t/how-to-export-it-to-an-svg-file-can-someone-help/35795)

<div class="topic-metadata">

**Author:** [@AvdMaker](https://discourse.processing.org/u/AvdMaker)\
**Replies:** 2\
**Last updated:** [March 21, 2022, 8:53am UTC](https://discourse.processing.org/t/how-to-export-it-to-an-svg-file-can-someone-help/35795 "2022-03-21T08:53:33Z")

</div>

Hi all, I am a student CS at a Highschool in the Netherlands and I need some help;This is what it’s supposed to be but I can’t find the original code anymore I’ve been trying to export this processing code from ‘proces…

---

## [Serial reading values is duplicate during about 0.3s](https://discourse.processing.org/t/serial-reading-values-is-duplicate-during-about-0-3s/35817)

<div class="topic-metadata">

**Author:** [@Ardan](https://discourse.processing.org/u/Ardan)\
**Replies:** 2\
**Last updated:** [March 21, 2022, 12:46am UTC](https://discourse.processing.org/t/serial-reading-values-is-duplicate-during-about-0-3s/35817 "2022-03-21T00:46:04Z")

</div>

HI guys, I’m new to both processing and JAVA. I need to build a serial project to complete my research. I used a Arduino MEGA 2560 and a AD7606 to capture volt signals from 8 channels and the value will be sent to proces…

---

## [How do I contribute to the references of p5.js?](https://discourse.processing.org/t/how-do-i-contribute-to-the-references-of-p5-js/17951)

<div class="topic-metadata">

**Author:** [@teddysphotos](https://discourse.processing.org/u/teddysphotos)\
**Replies:** 1\
**Last updated:** [March 20, 2022, 4:40pm UTC](https://discourse.processing.org/t/how-do-i-contribute-to-the-references-of-p5-js/17951 "2022-03-20T16:40:55Z")

</div>

I have contributed a few examples to p5js.org, but I want to contribute to references as well. What should I know, or in other words, what should be the prerequisite knowledge for contributing to the references section o…

---

## [If you don't talk for a while, speech recognition will not work](https://discourse.processing.org/t/if-you-dont-talk-for-a-while-speech-recognition-will-not-work/6432)

<div class="topic-metadata">

**Author:** [@SL7080](https://discourse.processing.org/u/SL7080)\
**Replies:** 1\
**Last updated:** [March 20, 2022, 1:24pm UTC](https://discourse.processing.org/t/if-you-dont-talk-for-a-while-speech-recognition-will-not-work/6432 "2022-03-20T13:24:25Z")

</div>

I use p5.speech library to do continuous recognition in my project. The problem is the recognition will not work if I don’t talk for a while. How could I active it again?

---

## [How to manipulate the size of the ellipse when it is located toward the center of the screen?](https://discourse.processing.org/t/how-to-manipulate-the-size-of-the-ellipse-when-it-is-located-toward-the-center-of-the-screen/35852)

<div class="topic-metadata">

**Author:** [@hau4302](https://discourse.processing.org/u/hau4302)\
**Replies:** 1\
**Last updated:** [March 20, 2022, 7:55am UTC](https://discourse.processing.org/t/how-to-manipulate-the-size-of-the-ellipse-when-it-is-located-toward-the-center-of-the-screen/35852 "2022-03-20T07:55:09Z")

</div>

How to manipulate the size of the ellipse when it is located toward the center of the screen?

---

## [Use deviceorientation and devicemotion events](https://discourse.processing.org/t/use-deviceorientation-and-devicemotion-events/35845)

<div class="topic-metadata">

**Author:** [@ch3](https://discourse.processing.org/u/ch3)\
**Replies:** 0\
**Last updated:** [March 20, 2022, 1:26am UTC](https://discourse.processing.org/t/use-deviceorientation-and-devicemotion-events/35845 "2022-03-20T01:26:37Z")

</div>

Hi there, I came across the sensor-js demo and I am trying to figure out how to pull the orientation values in a p5 sketch running on a mobile. How would you go about attaching and using the deviceorientation and devic…

---

## [Weird bug with Processing lights](https://discourse.processing.org/t/weird-bug-with-processing-lights/35803)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 0\
**Last updated:** [March 17, 2022, 11:20pm UTC](https://discourse.processing.org/t/weird-bug-with-processing-lights/35803 "2022-03-17T23:20:17Z")

</div>

I’ve been doing some experiments with marching cubes lately, but it was really hard to look at the image as 3d because there were no shadows or lighting. I tried using processing’s built in lights, but I got this weird i…

---

## [Rollover not working when applied in an array of circles](https://discourse.processing.org/t/rollover-not-working-when-applied-in-an-array-of-circles/35840)

<div class="topic-metadata">

**Author:** [@Erif](https://discourse.processing.org/u/Erif)\
**Replies:** 2\
**Last updated:** [March 19, 2022, 4:13pm UTC](https://discourse.processing.org/t/rollover-not-working-when-applied-in-an-array-of-circles/35840 "2022-03-19T16:13:51Z")

</div>

Hi all, coding with Processing for just over a month only so lots of things to learn :sweat\_smile: I’ve created a simple rollover so when the mouse is within the circle it changes color. It works… however when adjusting…

---

## [Infinite loop when using image()](https://discourse.processing.org/t/infinite-loop-when-using-image/35826)

<div class="topic-metadata">

**Author:** [@rustyrobison](https://discourse.processing.org/u/rustyrobison)\
**Replies:** 8\
**Last updated:** [March 19, 2022, 1:28am UTC](https://discourse.processing.org/t/infinite-loop-when-using-image/35826 "2022-03-19T01:28:36Z")

</div>

I made a simple loop, but when the image() function is called inside it, it comes up as an infinite loop. Any ideas? for (let i = 0; i \< 255; i++) { tint(255, i); image(img, 0, 0); }

---

## [Analyze just certain frequency range, minim, FFT, sound](https://discourse.processing.org/t/analyze-just-certain-frequency-range-minim-fft-sound/35823)

<div class="topic-metadata">

**Author:** [@rroarrg](https://discourse.processing.org/u/rroarrg)\
**Replies:** 0\
**Last updated:** [March 18, 2022, 6:20pm UTC](https://discourse.processing.org/t/analyze-just-certain-frequency-range-minim-fft-sound/35823 "2022-03-18T18:20:48Z")

</div>

Hi, i’m trying to make audio reactive visuals from an electric guitar input. For now im just trying to obtain sound values to work on. Guitar pitchs work from 82 to 987 Hz, and I use minim fft analysis to detect the amp…

---

## [How to make the ellipse size change when the ellipse locates toward the center??](https://discourse.processing.org/t/how-to-make-the-ellipse-size-change-when-the-ellipse-locates-toward-the-center/35805)

<div class="topic-metadata">

**Author:** [@Anson565](https://discourse.processing.org/u/Anson565)\
**Replies:** 2\
**Last updated:** [March 18, 2022, 5:52am UTC](https://discourse.processing.org/t/how-to-make-the-ellipse-size-change-when-the-ellipse-locates-toward-the-center/35805 "2022-03-18T05:52:09Z")

</div>

How to make the ellipse size change when the ellipse locates toward the center??

---

## [Chat 1:1 about p5 in the classroom, teaching fellowships, CC Fest, GSoC](https://discourse.processing.org/t/chat-1-1-about-p5-in-the-classroom-teaching-fellowships-cc-fest-gsoc/35819)

<div class="topic-metadata">

**Author:** [@saberkhan](https://discourse.processing.org/u/saberkhan)\
**Replies:** 0\
**Last updated:** [March 18, 2022, 1:03pm UTC](https://discourse.processing.org/t/chat-1-1-about-p5-in-the-classroom-teaching-fellowships-cc-fest-gsoc/35819 "2022-03-18T13:03:24Z")

</div>

Hi folks, I have some time next week, on Wednesday and Thursday, March 23 & 24 to meet with folks virtually to talk about Processing or p5.js in the classroom, Teaching Fellowships, Creative Coding Fest, or Google Summer…

---

## [Psychedelic Noise in JRubyArt](https://discourse.processing.org/t/psychedelic-noise-in-jrubyart/29602)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 7\
**Last updated:** [March 18, 2022, 11:45am UTC](https://discourse.processing.org/t/psychedelic-noise-in-jrubyart/29602 "2022-03-18T11:45:20Z")

</div>

There is a sketch on OpenProcessing which seems to have much more detail with OpenSimplexNoise:- attr\_reader :img, :colors, :theta, :phi, :remap1, :remap2 R = 5 RR = 1 def setup sketch\_title 'PNoise Pattern' color…

---

## [Scaling Images on a Custom Axis](https://discourse.processing.org/t/scaling-images-on-a-custom-axis/35801)

<div class="topic-metadata">

**Author:** [@AmethystMoon](https://discourse.processing.org/u/AmethystMoon)\
**Replies:** 1\
**Last updated:** [March 17, 2022, 9:23pm UTC](https://discourse.processing.org/t/scaling-images-on-a-custom-axis/35801 "2022-03-17T21:23:25Z")

</div>

I’m working on a cell-based game where the player walks around a world made of cells. I’m trying to give it an isometric perspective, so instead of just plain squares I rotate the canvas by 45 degrees, then draw the cell…

---

## [Automaticaly rerun and save images](https://discourse.processing.org/t/automaticaly-rerun-and-save-images/35786)

<div class="topic-metadata">

**Author:** [@tshaqscc](https://discourse.processing.org/u/tshaqscc)\
**Replies:** 4\
**Last updated:** [March 17, 2022, 3:07pm UTC](https://discourse.processing.org/t/automaticaly-rerun-and-save-images/35786 "2022-03-17T15:07:45Z")

</div>

I have this code that generates image. I want to generate 1000 variations of this image. I added this to save images \<saveFrame(“image\_####.png”);/\> but it saved just one time, is there a way to make this process autom…

---

## [Issue with using PShapes in py5](https://discourse.processing.org/t/issue-with-using-pshapes-in-py5/35762)

<div class="topic-metadata">

**Author:** [@Setsuna](https://discourse.processing.org/u/Setsuna)\
**Replies:** 9\
**Last updated:** [March 17, 2022, 11:16am UTC](https://discourse.processing.org/t/issue-with-using-pshapes-in-py5/35762 "2022-03-17T11:16:48Z")

</div>

Hello everyone! I have started to use py5, and I love it, especially the way it’s a python library and the way to handle vectors. Good job and thank you to everyone here who created or contributed to this project. I ha…

---

## [Reading my excel data in Processing](https://discourse.processing.org/t/reading-my-excel-data-in-processing/35792)

<div class="topic-metadata">

**Author:** [@CharrR](https://discourse.processing.org/u/CharrR)\
**Replies:** 4\
**Last updated:** [March 17, 2022, 10:41am UTC](https://discourse.processing.org/t/reading-my-excel-data-in-processing/35792 "2022-03-17T10:41:55Z")

</div>

Hello, processing newbie here~ I’m just trying to open my excel data in processing, but have no idea what the code to do this is. I read a little about loadTable and String and printIn, but none of it is making sense to…

---

## [Before I make my proposal](https://discourse.processing.org/t/before-i-make-my-proposal/35775)

<div class="topic-metadata">

**Author:** [@LN11211](https://discourse.processing.org/u/LN11211)\
**Replies:** 1\
**Last updated:** [March 16, 2022, 3:17am UTC](https://discourse.processing.org/t/before-i-make-my-proposal/35775 "2022-03-16T03:17:22Z")

</div>

Hello, I am LN, an engineering freshman. I want to propose an idea related to the “i18n improvements” task of GSoc. Before I propose my idea, I just want to confirm something. As far as I have understood from the i18n c…

---

## [Trojan warning in Processing 4 beta](https://discourse.processing.org/t/trojan-warning-in-processing-4-beta/35779)

<div class="topic-metadata">

**Author:** [@kaimikael](https://discourse.processing.org/u/kaimikael)\
**Replies:** 1\
**Last updated:** [March 16, 2022, 2:54pm UTC](https://discourse.processing.org/t/trojan-warning-in-processing-4-beta/35779 "2022-03-16T14:54:41Z")

</div>

Bitdefender Virus Scanner flags the presence of “Java.Trojan.GenericGBA.31260” in processing/core/PShapeOBJ.class. It’s been there since at least 4.0b3, still there in 4.0b7. It presumably is a false positive, but can …

---

## [getDefaultAdapter(); Deprecation](https://discourse.processing.org/t/getdefaultadapter-deprecation/35781)

<div class="topic-metadata">

**Author:** [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Replies:** 0\
**Last updated:** [March 16, 2022, 1:40pm UTC](https://discourse.processing.org/t/getdefaultadapter-deprecation/35781 "2022-03-16T13:40:47Z")

</div>

I use BluetoothAdapter bluetooth = BluetoothAdapter.getDefaultAdapter(); in my code to be able to connect with Bluetooth, but unfortunately, this code is already a deprecated method. It still works but I don’t know if …

---

## [Delay an event by 200ms. Why can I shift one and not several?](https://discourse.processing.org/t/delay-an-event-by-200ms-why-can-i-shift-one-and-not-several/35777)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 0\
**Last updated:** [March 16, 2022, 12:04pm UTC](https://discourse.processing.org/t/delay-an-event-by-200ms-why-can-i-shift-one-and-not-several/35777 "2022-03-16T12:04:45Z")

</div>

Good morning all! For my artistic installation, I would like from the movement of a point rotating at constant speed, to be able to make 9 other points follow the first with temporal and spatial shifts. Here is the lin…

---

## ["Could not load movie data.mov" problem](https://discourse.processing.org/t/could-not-load-movie-data-mov-problem/35772)

<div class="topic-metadata">

**Author:** [@javieracostas](https://discourse.processing.org/u/javieracostas)\
**Replies:** 1\
**Last updated:** [March 16, 2022, 11:59am UTC](https://discourse.processing.org/t/could-not-load-movie-data-mov-problem/35772 "2022-03-16T11:59:29Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am trying to import a .mov file to processing and when executing the code the following text appears “Could not load movie file data.mov” I hav…

---

## [Problema "Could not load movie file data.mov"](https://discourse.processing.org/t/problema-could-not-load-movie-file-data-mov/35771)

<div class="topic-metadata">

**Author:** [@javieracostas](https://discourse.processing.org/u/javieracostas)\
**Replies:** 1\
**Last updated:** [March 16, 2022, 1:08am UTC](https://discourse.processing.org/t/problema-could-not-load-movie-file-data-mov/35771 "2022-03-16T01:08:42Z")

</div>

formatee el código con el botón \</\> \* homework policy (política de tareas) \* asking questions (haciendo preguntas) Estoy intentando importar un archivo .mov a processing y al ejecutar el código aparece el siguiente t…

---

## [Masking several polygons](https://discourse.processing.org/t/masking-several-polygons/35718)

<div class="topic-metadata">

**Author:** [@ricardgarcia](https://discourse.processing.org/u/ricardgarcia)\
**Replies:** 2\
**Last updated:** [March 16, 2022, 8:02am UTC](https://discourse.processing.org/t/masking-several-polygons/35718 "2022-03-16T08:02:38Z")

</div>

Hey there, I’m a bit new to creative coding and even more using p5js. I’m currently working on a sketch in which I need to mask a letter several times (several rows and a cut letter inside) in the canvas. I was approac…

---

## [How to get smooth lines at an angle](https://discourse.processing.org/t/how-to-get-smooth-lines-at-an-angle/35767)

<div class="topic-metadata">

**Author:** [@GaryHomewood](https://discourse.processing.org/u/GaryHomewood)\
**Replies:** 1\
**Last updated:** [March 16, 2022, 2:46am UTC](https://discourse.processing.org/t/how-to-get-smooth-lines-at-an-angle/35767 "2022-03-16T02:46:33Z")

</div>

Just drawing lines, at some rotations they appear very blurry and pixelated. Is there anything I can do to make them sharper? Example here: https://editor.p5js.org/GaryHomewood/sketches/hBDmOiOHq

---

## [Text on top of 3D box](https://discourse.processing.org/t/text-on-top-of-3d-box/35757)

<div class="topic-metadata">

**Author:** [@Divitiacus](https://discourse.processing.org/u/Divitiacus)\
**Replies:** 3\
**Last updated:** [March 15, 2022, 12:53pm UTC](https://discourse.processing.org/t/text-on-top-of-3d-box/35757 "2022-03-15T12:53:38Z")

</div>

I have a 3D box and I would like to show data on top of the picture, which are always on front and are not moving, when I move the box. I found, that hint can be used to disable depth test for that but that just gives t…

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

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