# Latest

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

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

**Page:** 379

---

## [First Draft Proposal for p5.js Unit Tests](https://discourse.processing.org/t/first-draft-proposal-for-p5-js-unit-tests/18828)

<div class="topic-metadata">

**Author:** [@akshay-99](https://discourse.processing.org/u/akshay-99)\
**Replies:** 1\
**Last updated:** [March 22, 2020, 8:11pm UTC](https://discourse.processing.org/t/first-draft-proposal-for-p5-js-unit-tests/18828 "2020-03-22T20:11:02Z")

</div>

Hey everyone! I am thinking of working on improving p5.js unit tests. I have created a first draft proposal for it. It would be nice if someone could review it. Any suggestions or questions would be great! Here is the…

---

## [G4P\_2nd window\_draw lines,circle etc](https://discourse.processing.org/t/g4p-2nd-window-draw-lines-circle-etc/18702)

<div class="topic-metadata">

**Author:** [@Theo68](https://discourse.processing.org/u/Theo68)\
**Replies:** 8\
**Last updated:** [March 22, 2020, 6:55pm UTC](https://discourse.processing.org/t/g4p-2nd-window-draw-lines-circle-etc/18702 "2020-03-22T18:55:19Z")

</div>

Is it possible to draw lines or circles and squares in a 2nd window we created with G4P ???

---

## [Question about trims and integers](https://discourse.processing.org/t/question-about-trims-and-integers/18255)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 9\
**Last updated:** [March 22, 2020, 3:53pm UTC](https://discourse.processing.org/t/question-about-trims-and-integers/18255 "2020-03-22T15:53:31Z")

</div>

String\[\] a = split(receivedString, ','); println(a\[0\]); println(a\[1\]); println(a\[2\]); println(a\[3\]); println(a\[4\]); println(a\[5\]); println(a\[6\]); int val1 = Integer.parseInt(a\[0\].trim()); int val2 = Integer.par…

---

## [Byte array contains ints?](https://discourse.processing.org/t/byte-array-contains-ints/18902)

<div class="topic-metadata">

**Author:** [@yes](https://discourse.processing.org/u/yes)\
**Replies:** 1\
**Last updated:** [March 22, 2020, 3:40pm UTC](https://discourse.processing.org/t/byte-array-contains-ints/18902 "2020-03-22T15:40:35Z")

</div>

When I run this code, Processing thinks that some of these are ints when they are bytes. How can I fix this? byte\[\] logo = {0xCE, 0xED, 0x66, 0x66, 0xCC, 0x0D, 0x00, 0x0B, 0x03, 0x73, 0x00, 0x83, 0x00, 0x0C, 0x00, 0x0D,…

---

## [Shading a trapezoid with points](https://discourse.processing.org/t/shading-a-trapezoid-with-points/18589)

<div class="topic-metadata">

**Author:** [@eltrem](https://discourse.processing.org/u/eltrem)\
**Replies:** 15\
**Last updated:** [March 22, 2020, 3:12pm UTC](https://discourse.processing.org/t/shading-a-trapezoid-with-points/18589 "2020-03-22T15:12:19Z")

</div>

Hi all! I’ve been working lately on some generative drawing tools that generate SVG files for plotting with the Axidraw pen plotter. For a (fake 2D) isometric drawing tool i’m doing (https://twitter.com/sntvlnv/status/…

---

## [SPANISH INTERNATIONALIZATION PROPOSAL GSoC 2020](https://discourse.processing.org/t/spanish-internationalization-proposal-gsoc-2020/18847)

<div class="topic-metadata">

**Author:** [@alarcocs](https://discourse.processing.org/u/alarcocs)\
**Replies:** 4\
**Last updated:** [March 22, 2020, 2:37pm UTC](https://discourse.processing.org/t/spanish-internationalization-proposal-gsoc-2020/18847 "2020-03-22T14:37:09Z")

</div>

Hi everyone, I wanted to know if a proposal to further continue the Spanish translation efforts of the p5.js website would be a good project for GSoC 2020. I have seen that there is still a lot of work to be done to tra…

---

## [Introduction; ability to make sketches private](https://discourse.processing.org/t/introduction-ability-to-make-sketches-private/18899)

<div class="topic-metadata">

**Author:** [@aldrinJ](https://discourse.processing.org/u/aldrinJ)\
**Replies:** 0\
**Last updated:** [March 22, 2020, 2:25pm UTC](https://discourse.processing.org/t/introduction-ability-to-make-sketches-private/18899 "2020-03-22T14:25:10Z")

</div>

Hello everyone, My name is Aldrin Jenson and I am from Kerala, India. I would very much like to work on the project for making the sketches private in the p5.js web editor as part of the Google Summer of Code this year.…

---

## [Processing arduino slave from raspberry pi](https://discourse.processing.org/t/processing-arduino-slave-from-raspberry-pi/18883)

<div class="topic-metadata">

**Author:** [@reaghanpius](https://discourse.processing.org/u/reaghanpius)\
**Replies:** 5\
**Last updated:** [March 22, 2020, 6:31am UTC](https://discourse.processing.org/t/processing-arduino-slave-from-raspberry-pi/18883 "2020-03-22T06:31:25Z")

</div>

hi there , im doing a project in which , a dual servo motor (X and Y axis) in a arduino is controled using a Mouse, when i run the processing code from a Windows Pc, it works perfectly , but when i control it from a R…

---

## [Books on art theory/esthetics for programmers](https://discourse.processing.org/t/books-on-art-theory-esthetics-for-programmers/18874)

<div class="topic-metadata">

**Author:** [@nex](https://discourse.processing.org/u/nex)\
**Replies:** 9\
**Last updated:** [March 22, 2020, 12:26pm UTC](https://discourse.processing.org/t/books-on-art-theory-esthetics-for-programmers/18874 "2020-03-22T12:26:19Z")

</div>

While I have always created art in various forms, I come from an engineering background and I picked up creative coding only in the last couple of years. While I’m exploring and navigating Processing etc. quite alright, …

---

## [Cannot find a class or type named "ControlFrame"](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-controlframe/18868)

<div class="topic-metadata">

**Author:** [@lucluc1](https://discourse.processing.org/u/lucluc1)\
**Replies:** 5\
**Last updated:** [March 22, 2020, 12:14pm UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-controlframe/18868 "2020-03-22T12:14:51Z")

</div>

hi, I’m try an example find on : “http://www.sojamo.de/libraries/controlP5/examples/extra/ControlP5frame/ControlP5frame.pde” and obtain an error code: cannot find a class or type named “ControlFrame”. Does someone hav…

---

## [Help with moving vertical lines](https://discourse.processing.org/t/help-with-moving-vertical-lines/18848)

<div class="topic-metadata">

**Author:** [@alejo\_rgb](https://discourse.processing.org/u/alejo_rgb)\
**Replies:** 11\
**Last updated:** [March 22, 2020, 11:39am UTC](https://discourse.processing.org/t/help-with-moving-vertical-lines/18848 "2020-03-22T11:39:55Z")

</div>

Hi, i want to make a code that allows me to control the number of lines, the width, and other parameters beacuse im planing to import this code to resolume arena later. This is what i have so far. I made an animation of …

---

## [Programme works until there are 2 or more particles](https://discourse.processing.org/t/programme-works-until-there-are-2-or-more-particles/18541)

<div class="topic-metadata">

**Author:** [@Xetrocs](https://discourse.processing.org/u/Xetrocs)\
**Replies:** 4\
**Last updated:** [March 22, 2020, 10:51am UTC](https://discourse.processing.org/t/programme-works-until-there-are-2-or-more-particles/18541 "2020-03-22T10:51:20Z")

</div>

So i tried to make the gravitation simulation in processing and it worked really well unti i tried to add more than 1 particle. here is my code: PVector attract; int count = 0; particle par\[\] = new particle\[100\]; void s…

---

## [Transform Array of float into an other Array or ArrayList](https://discourse.processing.org/t/transform-array-of-float-into-an-other-array-or-arraylist/18596)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 3\
**Last updated:** [March 22, 2020, 7:34am UTC](https://discourse.processing.org/t/transform-array-of-float-into-an-other-array-or-arraylist/18596 "2020-03-22T07:34:43Z")

</div>

Hello, I’m trying to transform data of 5 differences phases in order to have it constrained and mapped positively between 200 and 12000. I did like this: for (int i = 0; i \< net.size; i++) {. // 5 phases coupled in a…

---

## [Ask simple questions about arrays~~thinks~~](https://discourse.processing.org/t/ask-simple-questions-about-arrays-thinks/18675)

<div class="topic-metadata">

**Author:** [@KEEP](https://discourse.processing.org/u/KEEP)\
**Replies:** 16\
**Last updated:** [March 22, 2020, 3:09am UTC](https://discourse.processing.org/t/ask-simple-questions-about-arrays-thinks/18675 "2020-03-22T03:09:34Z")

</div>

QUESTION\_1：Why does this code work out to be 0000000000，it isn’t 46810… :thinking: int \[\] values\_1 = new int \[10\]; for (int i = 1; i \< values\_1.length; i++){ values\_1\[i\] = values\_1\[i\] \* 2; print(values\_1\[i\]); } QUE…

---

## [3 digit code problem](https://discourse.processing.org/t/3-digit-code-problem/18839)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.processing.org/u/abcde)\
**Replies:** 22\
**Last updated:** [March 21, 2020, 8:07pm UTC](https://discourse.processing.org/t/3-digit-code-problem/18839 "2020-03-21T20:07:37Z")

</div>

Hello there! i’m trying to make an escape game and therefore i need to make a 3 digit code. I want to work with arrays to make it a lot shorter but i don’t know to let it work. Also i want to work with a key input for t…

---

## [GSOC 2020 (Google Summer of Code)](https://discourse.processing.org/t/gsoc-2020-google-summer-of-code/18371)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 12\
**Last updated:** [March 21, 2020, 5:01pm UTC](https://discourse.processing.org/t/gsoc-2020-google-summer-of-code/18371 "2020-03-21T17:01:34Z")

</div>

The Processing Foundation applied to Google Summer of Code 2020 and was accepted. Interested applicants can review the project list here: https://github.com/processing/processing/wiki/Project-List . The list may incl…

---

## [Color gradient on imported points (Perlin Noise)](https://discourse.processing.org/t/color-gradient-on-imported-points-perlin-noise/18858)

<div class="topic-metadata">

**Author:** [@mrbro](https://discourse.processing.org/u/mrbro)\
**Replies:** 2\
**Last updated:** [March 21, 2020, 1:44pm UTC](https://discourse.processing.org/t/color-gradient-on-imported-points-perlin-noise/18858 "2020-03-21T13:44:30Z")

</div>

Hello community! I am using Processing the third day, and it doesn’t let me sleep! xD I have a task to assign RGB values affected by Perlin Noise to a cloud of imported points. I managed to import the points, and I u…

---

## [Ellipse array moving](https://discourse.processing.org/t/ellipse-array-moving/18866)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 2\
**Last updated:** [March 21, 2020, 1:39pm UTC](https://discourse.processing.org/t/ellipse-array-moving/18866 "2020-03-21T13:39:33Z")

</div>

Ciao a tutti :occhiolino: nuovo imput progetto: sto cercando di far in modo che la ellipse(); si muova nelle mie caselle del’array utilizzando keyPressed() facendo in modo che il mio ipotetico personaggio non esca mai …

---

## [Experiment with Associative Memory](https://discourse.processing.org/t/experiment-with-associative-memory/9966)

<div class="topic-metadata">

**Author:** [@seanc4s](https://discourse.processing.org/u/seanc4s)\
**Replies:** 4\
**Last updated:** [March 21, 2020, 1:28pm UTC](https://discourse.processing.org/t/experiment-with-associative-memory/9966 "2020-03-21T13:28:00Z")

</div>

Using the P5 library: Associative Memory Experiment

---

## [Developing code slang p5.js library for GSOC 2020](https://discourse.processing.org/t/developing-code-slang-p5-js-library-for-gsoc-2020/18871)

<div class="topic-metadata">

**Author:** [@ArjunwadkarAjay](https://discourse.processing.org/u/ArjunwadkarAjay)\
**Replies:** 0\
**Last updated:** [March 21, 2020, 11:40am UTC](https://discourse.processing.org/t/developing-code-slang-p5-js-library-for-gsoc-2020/18871 "2020-03-21T11:40:50Z")

</div>

Hi, I am Ajay Arjunwadkar. I am keenly interested in working for code slang p5.js/(javascript) library as a part of of GSOC 2020. Please check the first draft of the proposal uploaded by me which contains all the detail…

---

## [Return an array of values from a loop](https://discourse.processing.org/t/return-an-array-of-values-from-a-loop/18857)

<div class="topic-metadata">

**Author:** [@mrbro](https://discourse.processing.org/u/mrbro)\
**Replies:** 4\
**Last updated:** [March 21, 2020, 9:42am UTC](https://discourse.processing.org/t/return-an-array-of-values-from-a-loop/18857 "2020-03-21T09:42:55Z")

</div>

Hi there! I just started using processing, and I am very new to coding. I am struggling with scope or arrays, im not even sure. I create an array of points, and paint them by using Perlin Noise. However, I want to us…

---

## [Comparing Arrays](https://discourse.processing.org/t/comparing-arrays/18864)

<div class="topic-metadata">

**Author:** [@yes](https://discourse.processing.org/u/yes)\
**Replies:** 1\
**Last updated:** [March 21, 2020, 9:21am UTC](https://discourse.processing.org/t/comparing-arrays/18864 "2020-03-21T09:21:02Z")

</div>

I want to compare all of two array’s data to compare the two.

---

## [Error on loading local images](https://discourse.processing.org/t/error-on-loading-local-images/18855)

<div class="topic-metadata">

**Author:** [@ej8000](https://discourse.processing.org/u/ej8000)\
**Replies:** 1\
**Last updated:** [March 21, 2020, 9:13am UTC](https://discourse.processing.org/t/error-on-loading-local-images/18855 "2020-03-21T09:13:25Z")

</div>

I have in setup() img = loadImage(“download.jpg”); and in draw() image(img,0, 0); i,ve got this error(Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///G:/p5/ex1/do…

---

## [How do I convert a file to unsigned?](https://discourse.processing.org/t/how-do-i-convert-a-file-to-unsigned/18663)

<div class="topic-metadata">

**Author:** [@yes](https://discourse.processing.org/u/yes)\
**Replies:** 2\
**Last updated:** [March 21, 2020, 9:06am UTC](https://discourse.processing.org/t/how-do-i-convert-a-file-to-unsigned/18663 "2020-03-21T09:06:44Z")

</div>

I am converting all file bytes to unsigned and put them in an array. How can I do this without errors? I have been getting errors when trying to do this.

---

## [Fft audio analysis to pimage](https://discourse.processing.org/t/fft-audio-analysis-to-pimage/18861)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [March 21, 2020, 5:33am UTC](https://discourse.processing.org/t/fft-audio-analysis-to-pimage/18861 "2020-03-21T05:33:18Z")

</div>

Just thought I would share this. Its a audio to fft image sketch. Not seen one in processing yet, but maybe I haven’t looked in the right place. May be interesting for some. This will be added to the current program I am…

---

## [Internationallization for p5 Web Editor](https://discourse.processing.org/t/internationallization-for-p5-web-editor/18851)

<div class="topic-metadata">

**Author:** [@Alexandra](https://discourse.processing.org/u/Alexandra)\
**Replies:** 0\
**Last updated:** [March 20, 2020, 8:45pm UTC](https://discourse.processing.org/t/internationallization-for-p5-web-editor/18851 "2020-03-20T20:45:15Z")

</div>

Hi everyone! This is Alexandra Cheng, a sophomore studying Computer Science at Barnard College, Columbia University. Last summer, @Oskar and I participated in GSoC under p5.js. Guided by our excellent mentors Ellen and…

---

## [Need assistance with timing! \[millis()\]](https://discourse.processing.org/t/need-assistance-with-timing-millis/18854)

<div class="topic-metadata">

**Author:** [@Mythikal](https://discourse.processing.org/u/Mythikal)\
**Replies:** 4\
**Last updated:** [March 21, 2020, 12:56am UTC](https://discourse.processing.org/t/need-assistance-with-timing-millis/18854 "2020-03-21T00:56:54Z")

</div>

Hey! Thanks for coming to help me out. Today I’m completely stumped on how to get a timer mechanism to work. I’m making a clicker type game and I cant figure out how to add money every second. my goal is this: for each…

---

## [DotStar SPI class for Processing for Pi](https://discourse.processing.org/t/dotstar-spi-class-for-processing-for-pi/18619)

<div class="topic-metadata">

**Author:** [@bluemoon](https://discourse.processing.org/u/bluemoon)\
**Replies:** 3\
**Last updated:** [March 20, 2020, 8:40pm UTC](https://discourse.processing.org/t/dotstar-spi-class-for-processing-for-pi/18619 "2020-03-20T20:40:27Z")

</div>

Hi folks, I made a class to control DotStar LEDs over SPI with Processing for Pi. I don’t have the proper chops to make an actual Java library, so I just put together some sample code. With it you can control an LED s…

---

## [Frogger Offset Help!](https://discourse.processing.org/t/frogger-offset-help/18842)

<div class="topic-metadata">

**Author:** [@Burgs](https://discourse.processing.org/u/Burgs)\
**Replies:** 1\
**Last updated:** [March 20, 2020, 4:13pm UTC](https://discourse.processing.org/t/frogger-offset-help/18842 "2020-03-20T16:13:56Z")

</div>

hello, I’m doing an exercise to practice offset. I’m currently working on a game of frogger to apply this but dont know where to start. how should i apply apply the offset to make the object move in a direction and then …

---

## [A quirky problem with string arrays and Null Pointer Exception](https://discourse.processing.org/t/a-quirky-problem-with-string-arrays-and-null-pointer-exception/18819)

<div class="topic-metadata">

**Author:** [@RetProf](https://discourse.processing.org/u/RetProf)\
**Replies:** 8\
**Last updated:** [March 20, 2020, 4:11pm UTC](https://discourse.processing.org/t/a-quirky-problem-with-string-arrays-and-null-pointer-exception/18819 "2020-03-20T16:11:56Z")

</div>

I am not a Processing Pro but have a fair amount of experience with Processing sketches quite a bit more complex than the one below. As an exercise, I was trying to read strings from a text file (3 tab separated elements…

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

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