# Latest

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

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

**Page:** 358

---

## [Sending a Processing array from one computer to other computers](https://discourse.processing.org/t/sending-a-processing-array-from-one-computer-to-other-computers/20366)

<div class="topic-metadata">

**Author:** [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Replies:** 7\
**Last updated:** [May 2, 2020, 8:00pm UTC](https://discourse.processing.org/t/sending-a-processing-array-from-one-computer-to-other-computers/20366 "2020-05-02T20:00:14Z")

</div>

Hello, I’m creating a project that involves robots that are tracked with computer vision. The robots will each run on a Raspberry Pi Zero W. There will be about 20 of them. A camera mounted to the ceiling detects where …

---

## [Cant locate SDK in android mode](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152)

<div class="topic-metadata">

**Author:** [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)\
**Replies:** 11\
**Last updated:** [May 2, 2020, 7:31pm UTC](https://discourse.processing.org/t/cant-locate-sdk-in-android-mode/20152 "2020-05-02T19:31:31Z")

</div>

I have installed android mode for processing, but i just cant get past the “Locate SDK” dialog: I have followed processsing’s tutorial on this, installed the android studio, android command line tools, Done research…

---

## [Sound files making my code run much slower](https://discourse.processing.org/t/sound-files-making-my-code-run-much-slower/20289)

<div class="topic-metadata">

**Author:** [@achandra](https://discourse.processing.org/u/achandra)\
**Replies:** 6\
**Last updated:** [May 2, 2020, 8:42pm UTC](https://discourse.processing.org/t/sound-files-making-my-code-run-much-slower/20289 "2020-05-02T20:42:17Z")

</div>

Hi, I’m new to P5 and working on a code for a school project. I have four sound clips in my code but everytime I have them on, the code becomes very visibly slower. I’m using the preload function to load them in, and th…

---

## [Need assistance reading sequential inputs from Arduino serial](https://discourse.processing.org/t/need-assistance-reading-sequential-inputs-from-arduino-serial/20368)

<div class="topic-metadata">

**Author:** [@Brandon\_Y](https://discourse.processing.org/u/Brandon_Y)\
**Replies:** 8\
**Last updated:** [May 2, 2020, 11:08pm UTC](https://discourse.processing.org/t/need-assistance-reading-sequential-inputs-from-arduino-serial/20368 "2020-05-02T23:08:21Z")

</div>

EDIT: Got it sorted, thanks everyone. My arduino program and device appears to be working correctly, sending the appropriate info out to serial. From reading through the console prints in processing, it is reading the …

---

## [ERROR installing p5bots-server](https://discourse.processing.org/t/error-installing-p5bots-server/20069)

<div class="topic-metadata">

**Author:** [@lucaswoz](https://discourse.processing.org/u/lucaswoz)\
**Replies:** 2\
**Last updated:** [May 2, 2020, 8:17pm UTC](https://discourse.processing.org/t/error-installing-p5bots-server/20069 "2020-05-02T20:17:01Z")

</div>

Hello! I’m having some trouble following along with the HelloWorld p5bots tutorial: https://github.com/sarahgp/p5bots/blob/master/examples/HelloWorld.md I keep getting a bunch of errors when I try to run “npm install -g…

---

## [Random Image Generation + Random Rotation](https://discourse.processing.org/t/random-image-generation-random-rotation/20372)

<div class="topic-metadata">

**Author:** [@GDlauren20](https://discourse.processing.org/u/GDlauren20)\
**Replies:** 4\
**Last updated:** [May 2, 2020, 7:14pm UTC](https://discourse.processing.org/t/random-image-generation-random-rotation/20372 "2020-05-02T19:14:10Z")

</div>

Hi, I have generated a bit of code whereby a random image, selected from my array, appears on screen where the user clicked. It currently is working but need the images that appear to randomly rotate (around the centre p…

---

## [Cannot export P3D on iMac](https://discourse.processing.org/t/cannot-export-p3d-on-imac/20098)

<div class="topic-metadata">

**Author:** [@jcdell](https://discourse.processing.org/u/jcdell)\
**Replies:** 1\
**Last updated:** [May 2, 2020, 5:08pm UTC](https://discourse.processing.org/t/cannot-export-p3d-on-imac/20098 "2020-05-02T17:08:30Z")

</div>

All P3D exported sketches crash with this reported Error. This includes many examples that I have saved and then tried to export. Also, every time I run P3D sketch I get the following ( warning?) in the console window,…

---

## [Processing net question](https://discourse.processing.org/t/processing-net-question/20377)

<div class="topic-metadata">

**Author:** [@emanresU](https://discourse.processing.org/u/emanresU)\
**Replies:** 1\
**Last updated:** [May 2, 2020, 4:53pm UTC](https://discourse.processing.org/t/processing-net-question/20377 "2020-05-02T16:53:50Z")

</div>

how i can conect to the server (library processing.net.\*) in the global net but no in the local net

---

## [Tracking brightest point to create line](https://discourse.processing.org/t/tracking-brightest-point-to-create-line/19918)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 1\
**Last updated:** [May 2, 2020, 4:48pm UTC](https://discourse.processing.org/t/tracking-brightest-point-to-create-line/19918 "2020-05-02T16:48:28Z")

</div>

After getting the brightest pixel and the coordinates I intend to draw a line tracing the subsequent brightest point as the light source moves around eg the way we create tracelines using pmouseX and mouseX is thr a w…

---

## [A better way to write this IF statement](https://discourse.processing.org/t/a-better-way-to-write-this-if-statement/20322)

<div class="topic-metadata">

**Author:** [@normalnatural](https://discourse.processing.org/u/normalnatural)\
**Replies:** 5\
**Last updated:** [May 2, 2020, 4:35pm UTC](https://discourse.processing.org/t/a-better-way-to-write-this-if-statement/20322 "2020-05-02T16:35:57Z")

</div>

Hi there, I’m very new to processing and I was wondering if there’s a better way to write this IF statement. What I’m doing is creating a drawing tool and want to confine the line to a space in the window. This statemen…

---

## [\[Solved\] Attack3 Joystick buttons to turn on LEDs on Arduino?](https://discourse.processing.org/t/solved-attack3-joystick-buttons-to-turn-on-leds-on-arduino/20170)

<div class="topic-metadata">

**Author:** [@Code7](https://discourse.processing.org/u/Code7)\
**Replies:** 10\
**Last updated:** [April 30, 2020, 10:03pm UTC](https://discourse.processing.org/t/solved-attack3-joystick-buttons-to-turn-on-leds-on-arduino/20170 "2020-04-30T22:03:49Z")

</div>

Hello, community I’m new to Processing and coding in general so please bear with me. I am trying to control 2 servos and a bunch of LEDs attached to an Arduino Nano clone using Logitech Attack3 Joystick and Processing …

---

## [P5js on Tumblr Discussion - How to? \[not solved\]](https://discourse.processing.org/t/p5js-on-tumblr-discussion-how-to-not-solved/19664)

<div class="topic-metadata">

**Author:** [@danielx](https://discourse.processing.org/u/danielx)\
**Replies:** 5\
**Last updated:** [April 18, 2020, 4:20am UTC](https://discourse.processing.org/t/p5js-on-tumblr-discussion-how-to-not-solved/19664 "2020-04-18T04:20:17Z")

</div>

Hi! I know this is a broad question but I think its not only mine and I can’t find a discussion over this anywhere. Please excuse any typos or mistakes in my writing because I’m not a native English speaker. Let’s cut to…

---

## [Slowing down mouse](https://discourse.processing.org/t/slowing-down-mouse/20357)

<div class="topic-metadata">

**Author:** [@14mmss](https://discourse.processing.org/u/14mmss)\
**Replies:** 2\
**Last updated:** [May 2, 2020, 3:34pm UTC](https://discourse.processing.org/t/slowing-down-mouse/20357 "2020-05-02T15:34:41Z")

</div>

Hello, I wanted to make an ellipse that would follow the mouse but slowed down. Can anyone tell me why my code doesn’t work? float x, y; float speed = 7; void setup() { size(1000,1000); smooth(); frameRate(30); …

---

## [Game of life code error](https://discourse.processing.org/t/game-of-life-code-error/20238)

<div class="topic-metadata">

**Author:** [@pallavi24](https://discourse.processing.org/u/pallavi24)\
**Replies:** 4\
**Last updated:** [May 2, 2020, 2:40pm UTC](https://discourse.processing.org/t/game-of-life-code-error/20238 "2020-05-02T14:40:29Z")

</div>

I m trying to make the game of life on p5.js. I have used a 2d array of CA class object called ‘cell’ and saving every iteration in ‘new\_cell’ and finally copying back the values from ‘new \_cell’ to ‘cell’. The code work…

---

## [Simpler way to copy code on this forum](https://discourse.processing.org/t/simpler-way-to-copy-code-on-this-forum/14652)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 19\
**Last updated:** [May 2, 2020, 1:26pm UTC](https://discourse.processing.org/t/simpler-way-to-copy-code-on-this-forum/14652 "2020-05-02T13:26:01Z")

</div>

Hi any chance we could get a button that simply says copy code at the bottom of a code snippet, rather than having to click and drag, I know some of you might not find it a big deal, but it can be a hassle pulling long p…

---

## [How to move the mouse by code](https://discourse.processing.org/t/how-to-move-the-mouse-by-code/20376)

<div class="topic-metadata">

**Author:** [@emanresU](https://discourse.processing.org/u/emanresU)\
**Replies:** 1\
**Last updated:** [May 2, 2020, 6:05am UTC](https://discourse.processing.org/t/how-to-move-the-mouse-by-code/20376 "2020-05-02T06:05:51Z")

</div>

how i can move the mouse by code in to the center of the display (window) like in 3d games where it uses for rotate the camera (i know inglish very well)

---

## [Audio processing](https://discourse.processing.org/t/audio-processing/20370)

<div class="topic-metadata">

**Author:** [@dinkerpatel](https://discourse.processing.org/u/dinkerpatel)\
**Replies:** 2\
**Last updated:** [May 2, 2020, 1:33am UTC](https://discourse.processing.org/t/audio-processing/20370 "2020-05-02T01:33:53Z")

</div>

Hi! I am new to p5.js and want to use the audio libraries to extract music tones from an audio clip that has instrumental music. Essentially, I want to display ‘freq’ in the ‘y’ axis versus time in the ‘x’ axis and notat…

---

## [Question about a bug in my code](https://discourse.processing.org/t/question-about-a-bug-in-my-code/20164)

<div class="topic-metadata">

**Author:** [@Adi](https://discourse.processing.org/u/Adi)\
**Replies:** 23\
**Last updated:** [May 1, 2020, 9:19pm UTC](https://discourse.processing.org/t/question-about-a-bug-in-my-code/20164 "2020-05-01T21:19:19Z")

</div>

Hi all, I have created this code which aimes on a square which is taken from the top-left corner to the x and y values of the mouse when the mouse is pressed. Those 2 values are rectX and rectY. Two lines from the x-axi…

---

## [loadImage() fails to load image served on reverse proxy (Safari/iOS)](https://discourse.processing.org/t/loadimage-fails-to-load-image-served-on-reverse-proxy-safari-ios/20240)

<div class="topic-metadata">

**Author:** [@dfd0226](https://discourse.processing.org/u/dfd0226)\
**Replies:** 6\
**Last updated:** [May 1, 2020, 6:40pm UTC](https://discourse.processing.org/t/loadimage-fails-to-load-image-served-on-reverse-proxy-safari-ios/20240 "2020-05-01T18:40:57Z")

</div>

p5.js version: 0.10.2 Web browser and version: Safari: Version 13.1 (15609.1.20.111.8) Operating System: macOS 10.15.4 Steps to reproduce this: I’ve built an application that creates simulations of chemical systems inc…

---

## [I want to show text in screen independently while using 3D camera](https://discourse.processing.org/t/i-want-to-show-text-in-screen-independently-while-using-3d-camera/20361)

<div class="topic-metadata">

**Author:** [@SilverPrevail](https://discourse.processing.org/u/SilverPrevail)\
**Replies:** 3\
**Last updated:** [May 1, 2020, 6:26pm UTC](https://discourse.processing.org/t/i-want-to-show-text-in-screen-independently-while-using-3d-camera/20361 "2020-05-01T18:26:33Z")

</div>

import java.awt.AWTException; import java.awt.Robot; public class Player{ public float x; public float y; public float z; public float vz; public float theta; public float phi; public float speed; } boole…

---

## [Giving elements HSB rainbow colors in a for loop](https://discourse.processing.org/t/giving-elements-hsb-rainbow-colors-in-a-for-loop/20316)

<div class="topic-metadata">

**Author:** [@Elfriede](https://discourse.processing.org/u/Elfriede)\
**Replies:** 5\
**Last updated:** [May 1, 2020, 6:24pm UTC](https://discourse.processing.org/t/giving-elements-hsb-rainbow-colors-in-a-for-loop/20316 "2020-05-01T18:24:22Z")

</div>

Hey eyeryone. So this is my first post. I’ve only started with processing. We got the task to make a grid of 2D Primitives which can be altered through changing the size() or number of elements. I figured that part ou…

---

## [GP4 Custom Slider Question; I want to annotate at slider position](https://discourse.processing.org/t/gp4-custom-slider-question-i-want-to-annotate-at-slider-position/20330)

<div class="topic-metadata">

**Author:** [@wakewatcher](https://discourse.processing.org/u/wakewatcher)\
**Replies:** 9\
**Last updated:** [May 1, 2020, 6:08pm UTC](https://discourse.processing.org/t/gp4-custom-slider-question-i-want-to-annotate-at-slider-position/20330 "2020-05-01T18:08:40Z")

</div>

I’d like to add some text above or below where the slider marker currently is sitting. I guess I could brute force it somehow using map(), getValueS and some trial and error offsets but since the slider already knows whe…

---

## [Problems with gravity simulation](https://discourse.processing.org/t/problems-with-gravity-simulation/20349)

<div class="topic-metadata">

**Author:** [@Kport1](https://discourse.processing.org/u/Kport1)\
**Replies:** 4\
**Last updated:** [May 1, 2020, 5:53pm UTC](https://discourse.processing.org/t/problems-with-gravity-simulation/20349 "2020-05-01T17:53:35Z")

</div>

ArrayList\<Body\> objects = new ArrayList\<Body\>(100); ArrayList\<Body\> destroy = new ArrayList\<Body\>(); float m1 = 0.5; float m2 = 1; float G = 0.00002; int maxDist = 1; float scale = 1; PVector mouse = new PVector(0, 0…

---

## [I want a google spread sheets using p5!](https://discourse.processing.org/t/i-want-a-google-spread-sheets-using-p5/2632)

<div class="topic-metadata">

**Author:** [@fankimm](https://discourse.processing.org/u/fankimm)\
**Replies:** 6\
**Last updated:** [May 1, 2020, 5:42pm UTC](https://discourse.processing.org/t/i-want-a-google-spread-sheets-using-p5/2632 "2020-05-01T17:42:31Z")

</div>

I have a Google Spreadsheet with full access. And I want to add new content to the Google Spreadsheet using p5js. Can I…? What should I do?

---

## [Photo editing example pointers](https://discourse.processing.org/t/photo-editing-example-pointers/20191)

<div class="topic-metadata">

**Author:** [@malindra](https://discourse.processing.org/u/malindra)\
**Replies:** 1\
**Last updated:** [May 1, 2020, 4:08pm UTC](https://discourse.processing.org/t/photo-editing-example-pointers/20191 "2020-05-01T16:08:33Z")

</div>

Loving these images and apparently they’re done using processing or something similar. Does anyone have any pointers on how to achieve things like these, have been hunting around but not found any tuts so far. (t…

---

## [Necesito ayuda relacionada con mousePressed](https://discourse.processing.org/t/necesito-ayuda-relacionada-con-mousepressed/20346)

<div class="topic-metadata">

**Author:** [@Nachitopro882](https://discourse.processing.org/u/Nachitopro882)\
**Replies:** 2\
**Last updated:** [May 1, 2020, 3:06pm UTC](https://discourse.processing.org/t/necesito-ayuda-relacionada-con-mousepressed/20346 "2020-05-01T15:06:58Z")

</div>

este es el código en si. mi idea es un circulo el cual cambia de color y crece, al mismo tiempo que se mueve dependiendo de la posición del mouse. int a; int b; boolean x= false; void setup() { size(400,400); a=10;…

---

## [Making a server in draw()](https://discourse.processing.org/t/making-a-server-in-draw/20319)

<div class="topic-metadata">

**Author:** [@kikomali2517](https://discourse.processing.org/u/kikomali2517)\
**Replies:** 1\
**Last updated:** [May 1, 2020, 3:03pm UTC](https://discourse.processing.org/t/making-a-server-in-draw/20319 "2020-05-01T15:03:42Z")

</div>

I know that you can make servers in setup but I am wondering if you can make or initialize them in draw. I want to make a game that will connect me and my friends on a network. The thing is I want the user to choose if t…

---

## [G4P Library / GUI builder: Set default font for all GUI elements in one go?](https://discourse.processing.org/t/g4p-library-gui-builder-set-default-font-for-all-gui-elements-in-one-go/15658)

<div class="topic-metadata">

**Author:** [@mark\_orion](https://discourse.processing.org/u/mark_orion)\
**Replies:** 7\
**Last updated:** [May 1, 2020, 12:42pm UTC](https://discourse.processing.org/t/g4p-library-gui-builder-set-default-font-for-all-gui-elements-in-one-go/15658 "2020-05-01T12:42:37Z")

</div>

I am working on a Processing project that uses the G4P library. The GUI is build with the G4P GUI Builder tool. I love how easy it is now to create GUIs in Processing. The only problem is that I find the fonts far too sm…

---

## [Detect Server without activating it](https://discourse.processing.org/t/detect-server-without-activating-it/12193)

<div class="topic-metadata">

**Author:** [@Odermonicon](https://discourse.processing.org/u/Odermonicon)\
**Replies:** 6\
**Last updated:** [July 25, 2019, 3:04pm UTC](https://discourse.processing.org/t/detect-server-without-activating-it/12193 "2019-07-25T15:04:28Z")

</div>

I know that I can use server.active() to detect if a server is active, but I (think I) need to initialize the server first with new Server(this, port), is there a way to check if a server is active just by using the port…

---

## [Can't normalize fonts according to x-height](https://discourse.processing.org/t/cant-normalize-fonts-according-to-x-height/20324)

<div class="topic-metadata">

**Author:** [@dehyde](https://discourse.processing.org/u/dehyde)\
**Replies:** 3\
**Last updated:** [May 1, 2020, 6:34am UTC](https://discourse.processing.org/t/cant-normalize-fonts-according-to-x-height/20324 "2020-05-01T06:34:23Z")

</div>

Hi, I’m trying to create a normalized version of the same letter in multiple fonts. It doesn’t work as you can see in the image, the height is different for each font (same letter) I’m looping through all the fonts …

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

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