# Latest

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

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

**Page:** 147

---

## [Graphs and framerate?](https://discourse.processing.org/t/graphs-and-framerate/36141)

<div class="topic-metadata">

**Author:** [@king\_B99](https://discourse.processing.org/u/king_B99)\
**Replies:** 1\
**Last updated:** [April 5, 2022, 8:00pm UTC](https://discourse.processing.org/t/graphs-and-framerate/36141 "2022-04-05T20:00:08Z")

</div>

How can I make a graph that plots my frame rate? I have the code to make it print on screen but I want to make it into a graph.

---

## [Editor.p5js.org - login currently impossible?](https://discourse.processing.org/t/editor-p5js-org-login-currently-impossible/36135)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 2\
**Last updated:** [April 5, 2022, 4:47pm UTC](https://discourse.processing.org/t/editor-p5js-org-login-currently-impossible/36135 "2022-04-05T16:47:05Z")

</div>

Hi everyone I don’t know if it’s a local network problem but about 30’ ago my students were no more able to save their projects (sketchs) into https://editor.p5js.org. They had login at the begining of the lesson and at…

---

## [Sum of sine waves](https://discourse.processing.org/t/sum-of-sine-waves/36134)

<div class="topic-metadata">

**Author:** [@Arianna](https://discourse.processing.org/u/Arianna)\
**Replies:** 1\
**Last updated:** [April 5, 2022, 4:06pm UTC](https://discourse.processing.org/t/sum-of-sine-waves/36134 "2022-04-05T16:06:49Z")

</div>

Hola amigos quisiera sumar dos ondas sinusoidales… Ayúdenme xfa que soy nueva… Mediante un objecte de tipo AudioOutput Con el siguiente código visualizo buffer: left, right Pero… como visualizo buffers mix, que conti…

---

## [Ondas sinusoidales](https://discourse.processing.org/t/ondas-sinusoidales/36095)

<div class="topic-metadata">

**Author:** [@Arianna](https://discourse.processing.org/u/Arianna)\
**Replies:** 2\
**Last updated:** [April 5, 2022, 3:07pm UTC](https://discourse.processing.org/t/ondas-sinusoidales/36095 "2022-04-05T15:07:13Z")

</div>

Hola amigos!! Quiero mostrar una onda sinusoidal primero pero no se como hacerlo en en draw()… Ayudarme xfis que spu nueva en esto… import ddf.minim.\*; import ddf.minim.ugens.\*; Minim minim; Oscil myWave1; Oscil myWa…

---

## [P5.js code without stringbuilder](https://discourse.processing.org/t/p5-js-code-without-stringbuilder/36084)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 6\
**Last updated:** [April 5, 2022, 1:51pm UTC](https://discourse.processing.org/t/p5-js-code-without-stringbuilder/36084 "2022-04-05T13:51:29Z")

</div>

how do I rewrite this code without string builder? function setup() { createCanvas(600,600); initializeFields(); var n = 20; } function getAlphaNumericString(n) { // chose a Character random from this St…

---

## [NullPointerException when loading an image](https://discourse.processing.org/t/nullpointerexception-when-loading-an-image/36125)

<div class="topic-metadata">

**Author:** [@Jokpau](https://discourse.processing.org/u/Jokpau)\
**Replies:** 2\
**Last updated:** [April 5, 2022, 11:29am UTC](https://discourse.processing.org/t/nullpointerexception-when-loading-an-image/36125 "2022-04-05T11:29:36Z")

</div>

Hello, I am trying to make a program for which I want to load images with an array. I tried a few variants, but they return a null pointer exception when ran. This is the main code of the program: AllBlocks allBlocks; …

---

## [GSOC'22 Proposal- Education for all](https://discourse.processing.org/t/gsoc22-proposal-education-for-all/36062)

<div class="topic-metadata">

**Author:** [@divyansh013](https://discourse.processing.org/u/divyansh013)\
**Replies:** 3\
**Last updated:** [April 5, 2022, 4:09am UTC](https://discourse.processing.org/t/gsoc22-proposal-education-for-all/36062 "2022-04-05T04:09:20Z")

</div>

Hello everyone, sending much love to each one of you. I’m here with my proposal for this summer on the topic “Education for all”. This project comes under “Continued Development of p5.js Teach page”. It would be of great…

---

## [Java.lang errors on running a sketch – new installs on Windows](https://discourse.processing.org/t/java-lang-errors-on-running-a-sketch-new-installs-on-windows/36112)

<div class="topic-metadata">

**Author:** [@kevinschlei](https://discourse.processing.org/u/kevinschlei)\
**Replies:** 1\
**Last updated:** [April 4, 2022, 11:42pm UTC](https://discourse.processing.org/t/java-lang-errors-on-running-a-sketch-new-installs-on-windows/36112 "2022-04-04T23:42:13Z")

</div>

I have a few students with fresh installs of Processing 4b7, 4b6, and even 3.5.4 that are getting the following error when trying to run a new blank sketch: java.lang.RuntimeException: java.lang.ClassNotFoundException: …

---

## [Send variable from arduino to processing: Error while disabling serialEvent () for COM4 null](https://discourse.processing.org/t/send-variable-from-arduino-to-processing-error-while-disabling-serialevent-for-com4-null/13046)

<div class="topic-metadata">

**Author:** [@waffi](https://discourse.processing.org/u/waffi)\
**Replies:** 6\
**Last updated:** [April 4, 2022, 10:12pm UTC](https://discourse.processing.org/t/send-variable-from-arduino-to-processing-error-while-disabling-serialevent-for-com4-null/13046 "2022-04-04T22:12:26Z")

</div>

Hello everybody I try to send variables from the arduino to processing. From time to time processing brings me this error: Error, disabling serialEvent () for COM4 zero I invite scetch again because then arduino, then…

---

## [Speed of ball in this code](https://discourse.processing.org/t/speed-of-ball-in-this-code/36111)

<div class="topic-metadata">

**Author:** [@bonjaminbanjer](https://discourse.processing.org/u/bonjaminbanjer)\
**Replies:** 1\
**Last updated:** [April 4, 2022, 8:18am UTC](https://discourse.processing.org/t/speed-of-ball-in-this-code/36111 "2022-04-04T08:18:41Z")

</div>

please format code with \</\> button \* homework policy \* asking questions \< Ball b; color labcol = color(200, 0, 0); void setup() { size(600, 600); b = new Ball(width /120, height/500, 15); } void draw() { back…

---

## [Irregular shapes collision detection](https://discourse.processing.org/t/irregular-shapes-collision-detection/10743)

<div class="topic-metadata">

**Author:** [@Hiram-Belgium](https://discourse.processing.org/u/Hiram-Belgium)\
**Replies:** 8\
**Last updated:** [April 4, 2022, 7:56pm UTC](https://discourse.processing.org/t/irregular-shapes-collision-detection/10743 "2022-04-04T19:56:03Z")

</div>

Hello… sorry for my very bad english! I am looking for a method to determine if there are collision between 2 irregular shapes . In the idea of the circle packing but with random shapes ! Thank you for directing my resea…

---

## [Discussion: GSoC 2022 Continued development of p5.js showcase](https://discourse.processing.org/t/discussion-gsoc-2022-continued-development-of-p5-js-showcase/35936)

<div class="topic-metadata">

**Author:** [@putawande](https://discourse.processing.org/u/putawande)\
**Replies:** 1\
**Last updated:** [April 4, 2022, 4:57pm UTC](https://discourse.processing.org/t/discussion-gsoc-2022-continued-development-of-p5-js-showcase/35936 "2022-04-04T16:57:03Z")

</div>

Hi. My name is Tanadol Deachprapakorn. I’m a second-year computer engineering student at Chiang Mai University, Thailand. p5.js introduced me to generative art and creative coding. So, I’m interested to be a part of the…

---

## [Plans for GSoC 2022?](https://discourse.processing.org/t/plans-for-gsoc-2022/34906)

<div class="topic-metadata">

**Author:** [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Replies:** 8\
**Last updated:** [April 4, 2022, 4:53pm UTC](https://discourse.processing.org/t/plans-for-gsoc-2022/34906 "2022-04-04T16:53:37Z")

</div>

@saberkhan et al. – Is it too early to begin inquiring about Processing participation for GSoC 2022? Sorry if I’m jumping the gun here …

---

## [Converting a boundaries function with applyForce from .pde to .p5](https://discourse.processing.org/t/converting-a-boundaries-function-with-applyforce-from-pde-to-p5/35984)

<div class="topic-metadata">

**Author:** [@ZizoMass](https://discourse.processing.org/u/ZizoMass)\
**Replies:** 6\
**Last updated:** [April 4, 2022, 3:27pm UTC](https://discourse.processing.org/t/converting-a-boundaries-function-with-applyforce-from-pde-to-p5/35984 "2022-04-04T15:27:42Z")

</div>

Hi, guys I’m converting an old project that I had done in processing, and I’m having a lot of difficulties converting this function. The function makes a game object float within a pre-limited area, changing the moveme…

---

## [Disable pinch zoom on mobile](https://discourse.processing.org/t/disable-pinch-zoom-on-mobile/36100)

<div class="topic-metadata">

**Author:** [@tristan1](https://discourse.processing.org/u/tristan1)\
**Replies:** 2\
**Last updated:** [April 4, 2022, 11:13am UTC](https://discourse.processing.org/t/disable-pinch-zoom-on-mobile/36100 "2022-04-04T11:13:49Z")

</div>

Hey everyone, I am creating a litte pingpong game with multiple touch so that two player can play with each other on mobile device. While playing the two touches trigger zooming in and out the screen, which strongly …

---

## [Making a labyrinth](https://discourse.processing.org/t/making-a-labyrinth/6869)

<div class="topic-metadata">

**Author:** [@singenya](https://discourse.processing.org/u/singenya)\
**Replies:** 6\
**Last updated:** [April 4, 2022, 8:20am UTC](https://discourse.processing.org/t/making-a-labyrinth/6869 "2022-04-04T08:20:52Z")

</div>

hello i need help in order to make a labyrinth I have already done all the part to make the ellipse move, now I want to create the labyrinth itself and i have 2 ideas : making a labyrinth with some lines or rect Or addi…

---

## [Change LIVE capture animation to a gif/moving animation](https://discourse.processing.org/t/change-live-capture-animation-to-a-gif-moving-animation/36102)

<div class="topic-metadata">

**Author:** [@drnturtle](https://discourse.processing.org/u/drnturtle)\
**Replies:** 0\
**Last updated:** [April 4, 2022, 4:14am UTC](https://discourse.processing.org/t/change-live-capture-animation-to-a-gif-moving-animation/36102 "2022-04-04T04:14:52Z")

</div>

So lately I have done some exploration on the camera delay sort of effect on P5.js, and I just couldn’t wrap my head around something— When I try to replace the img source from “createCapture(VIDEO)” to "loadImage(‘XXXX.…

---

## [Permissions problem on Monterrey](https://discourse.processing.org/t/permissions-problem-on-monterrey/36044)

<div class="topic-metadata">

**Author:** [@patofoto](https://discourse.processing.org/u/patofoto)\
**Replies:** 1\
**Last updated:** [April 4, 2022, 7:02am UTC](https://discourse.processing.org/t/permissions-problem-on-monterrey/36044 "2022-04-04T07:02:40Z")

</div>

Just getting my feet wet. Want to use video feed from M1Max MacBook Pro. Using the GettingStartedCapture example. Getting a permissions error message on console. Cannot seem to find a previous post relating to this. Any …

---

## [The Nature of Code solutions to exercises?](https://discourse.processing.org/t/the-nature-of-code-solutions-to-exercises/36085)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.processing.org/u/animanoir)\
**Replies:** 2\
**Last updated:** [April 3, 2022, 9:45pm UTC](https://discourse.processing.org/t/the-nature-of-code-solutions-to-exercises/36085 "2022-04-03T21:45:41Z")

</div>

I’m trying to find the solutions of the book to compare them to mine. Are they available somewhere?

---

## [Having a hard time rotating image about a point](https://discourse.processing.org/t/having-a-hard-time-rotating-image-about-a-point/36083)

<div class="topic-metadata">

**Author:** [@Xwalt](https://discourse.processing.org/u/Xwalt)\
**Replies:** 5\
**Last updated:** [April 3, 2022, 11:05am UTC](https://discourse.processing.org/t/having-a-hard-time-rotating-image-about-a-point/36083 "2022-04-03T11:05:05Z")

</div>

PImage base; PImage midarm; PImage secondarm; int baserotation; int midarmrotation; int secondarmrotation; int baseX ; int baseY ; int midarmX ; int midarmY; int secondarmX ; int secondarmY ; import controlP5.\*; Control…

---

## [RGB values of screen pixels (not from a loaded image)](https://discourse.processing.org/t/rgb-values-of-screen-pixels-not-from-a-loaded-image/36078)

<div class="topic-metadata">

**Author:** [@ChrisR](https://discourse.processing.org/u/ChrisR)\
**Replies:** 3\
**Last updated:** [April 2, 2022, 8:36pm UTC](https://discourse.processing.org/t/rgb-values-of-screen-pixels-not-from-a-loaded-image/36078 "2022-04-02T20:36:12Z")

</div>

Hi, I want to capture and store the RGB values from an area of pixels anywhere on the screen (- not from a preloaded image - but of the screen) and that’s where I’m stumbling. As all the examples I’ve seen, first load an…

---

## [Firebase in P5JS](https://discourse.processing.org/t/firebase-in-p5js/36080)

<div class="topic-metadata">

**Author:** [@Omri](https://discourse.processing.org/u/Omri)\
**Replies:** 0\
**Last updated:** [April 2, 2022, 3:44pm UTC](https://discourse.processing.org/t/firebase-in-p5js/36080 "2022-04-02T15:44:10Z")

</div>

Hey there, I want to use firebase in my project and I follow Shiffman’s project to do so, but I think the firebase configuration has changed… in Shiffman’s HTML he wrote: \<script src="https://www.gstatic.com/firebasej…

---

## [Pure Java random string code to Processing random string code](https://discourse.processing.org/t/pure-java-random-string-code-to-processing-random-string-code/36072)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 4\
**Last updated:** [April 2, 2022, 1:56pm UTC](https://discourse.processing.org/t/pure-java-random-string-code-to-processing-random-string-code/36072 "2022-04-02T13:56:10Z")

</div>

how do I make this program in processing rather than pure java? // Java program generate a random AlphaNumeric String // using Math.random() method public class RandomString { // function to generate a ran…

---

## [Uncaught ReferenceError: createRadio is not defined](https://discourse.processing.org/t/uncaught-referenceerror-createradio-is-not-defined/36075)

<div class="topic-metadata">

**Author:** [@Omri](https://discourse.processing.org/u/Omri)\
**Replies:** 4\
**Last updated:** [April 2, 2022, 1:00pm UTC](https://discourse.processing.org/t/uncaught-referenceerror-createradio-is-not-defined/36075 "2022-04-02T13:00:26Z")

</div>

Hey, I’m trying to use the createRadio() function, but I get this error: Uncaught ReferenceError: createRadio is not defined at setup (p5js-temp-sketch\_220402a1584838079584472986.js:4:3) at m.\<anonymous\> (p5.min…

---

## [Creating a Gauge Bar with percentage](https://discourse.processing.org/t/creating-a-gauge-bar-with-percentage/36032)

<div class="topic-metadata">

**Author:** [@KingKvn](https://discourse.processing.org/u/KingKvn)\
**Replies:** 6\
**Last updated:** [April 2, 2022, 9:59am UTC](https://discourse.processing.org/t/creating-a-gauge-bar-with-percentage/36032 "2022-04-02T09:59:04Z")

</div>

Good day, I’ve been given an assignment to code a program that requires me to create 4 Leds that change to 2 different colors depending on which mouse button is pressed. If the right mouse button is pressed, the gauge ba…

---

## [Remove all items from ControlP5 dropdownlist](https://discourse.processing.org/t/remove-all-items-from-controlp5-dropdownlist/36060)

<div class="topic-metadata">

**Author:** [@ybr](https://discourse.processing.org/u/ybr)\
**Replies:** 1\
**Last updated:** [April 1, 2022, 8:22pm UTC](https://discourse.processing.org/t/remove-all-items-from-controlp5-dropdownlist/36060 "2022-04-01T20:22:33Z")

</div>

Hi, I’m filling a controlp5 dropddownlist with columns from a CSV file. for (int i=0; i\<columns.length; i++) { time.addItem(columns\[i\], i); } But when I load a different file, the controlp5 dropdownlist should sh…

---

## [Loading objs with callbacks](https://discourse.processing.org/t/loading-objs-with-callbacks/36066)

<div class="topic-metadata">

**Author:** [@Damdada](https://discourse.processing.org/u/Damdada)\
**Replies:** 2\
**Last updated:** [April 1, 2022, 7:40pm UTC](https://discourse.processing.org/t/loading-objs-with-callbacks/36066 "2022-04-01T19:40:05Z")

</div>

Hi, im trying to load multiple OBJs and Images with callbacks into my sketch. The loading works fine but the Problem is that the Images and OBJs order is diffrent evreytime i load the sketch. So the images i take for th…

---

## [Accessing pixel array of PGraphics buffer is very slow if P3D render used](https://discourse.processing.org/t/accessing-pixel-array-of-pgraphics-buffer-is-very-slow-if-p3d-render-used/36034)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 2\
**Last updated:** [April 1, 2022, 8:43am UTC](https://discourse.processing.org/t/accessing-pixel-array-of-pgraphics-buffer-is-very-slow-if-p3d-render-used/36034 "2022-04-01T08:43:02Z")

</div>

Hi Trying to display PGraphics buffer as ascii characters. The method is to render things to a PGraphics buffer, then iterate through the pixels manually and map them to ascii characters. It works fine when the PGraphi…

---

## [How to contact with mentors regarding the project ideas?](https://discourse.processing.org/t/how-to-contact-with-mentors-regarding-the-project-ideas/36025)

<div class="topic-metadata">

**Author:** [@dikshashukla455](https://discourse.processing.org/u/dikshashukla455)\
**Replies:** 2\
**Last updated:** [March 31, 2022, 9:02am UTC](https://discourse.processing.org/t/how-to-contact-with-mentors-regarding-the-project-ideas/36025 "2022-03-31T09:02:28Z")

</div>

I didn’t find a way to get to contact with mentors. Can anyone plz tell me where to contact? Thank you for your time for reading it.

---

## [Load only first line of file](https://discourse.processing.org/t/load-only-first-line-of-file/36058)

<div class="topic-metadata">

**Author:** [@ybr](https://discourse.processing.org/u/ybr)\
**Replies:** 2\
**Last updated:** [March 31, 2022, 8:39pm UTC](https://discourse.processing.org/t/load-only-first-line-of-file/36058 "2022-03-31T20:39:57Z")

</div>

Hi! I have a large CSV file and loading using loadTable() takes a lot of time. For my application, at first I only need the first line of the file. Is there a way to quickly load the first line of the file without loadi…

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

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