# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=514

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

**Page:** 515

---

## [How to move object according to time of sound](https://discourse.processing.org/t/how-to-move-object-according-to-time-of-sound/8964)

<div class="topic-metadata">

**Author:** [@CodeTime](https://discourse.processing.org/u/CodeTime)\
**Replies:** 3\
**Last updated:** [March 10, 2019, 4:26pm UTC](https://discourse.processing.org/t/how-to-move-object-according-to-time-of-sound/8964 "2019-03-10T16:26:16Z")

</div>

So I am trying to make an audio player and am on the part with the time indicator at the bottom which tells how far you are into the song. The main problem is that the songs all have different lengths but the time indica…

---

## [Need some guidance to convert processing code to p5.js code](https://discourse.processing.org/t/need-some-guidance-to-convert-processing-code-to-p5-js-code/9164)

<div class="topic-metadata">

**Author:** [@keshavv\_123](https://discourse.processing.org/u/keshavv_123)\
**Replies:** 4\
**Last updated:** [March 10, 2019, 4:25pm UTC](https://discourse.processing.org/t/need-some-guidance-to-convert-processing-code-to-p5-js-code/9164 "2019-03-10T16:25:18Z")

</div>

Hi everyone, I’m trying to convert the processing code into the p5.js code but I didn’t understand how to convert the processing class and object into the p5.js code. can anyone please help me?

---

## [Can somebody help me understand this awesome code?](https://discourse.processing.org/t/can-somebody-help-me-understand-this-awesome-code/9153)

<div class="topic-metadata">

**Author:** [@sorenkirk](https://discourse.processing.org/u/sorenkirk)\
**Replies:** 4\
**Last updated:** [March 10, 2019, 4:04pm UTC](https://discourse.processing.org/t/can-somebody-help-me-understand-this-awesome-code/9153 "2019-03-10T16:04:29Z")

</div>

I came across a really cool sketch in Open Processing. But it’s uncommented, and I’d like to better understand what’s going on. (I am really new to p5.js, but have been using Processing for a few months). Anyway, I was …

---

## [Rect collision problem](https://discourse.processing.org/t/rect-collision-problem/9073)

<div class="topic-metadata">

**Author:** [@tobbykan](https://discourse.processing.org/u/tobbykan)\
**Replies:** 1\
**Last updated:** [March 10, 2019, 3:50am UTC](https://discourse.processing.org/t/rect-collision-problem/9073 "2019-03-10T03:50:38Z")

</div>

Halo everyone. I am quite a newbie in processing. Recently I am working on a project on rect moving around the screen and collision detection. Here is the script I found on a text book. It works perfectly. // Rotating S…

---

## [Trouble with multiple COM ports -import processing.serial.\*;](https://discourse.processing.org/t/trouble-with-multiple-com-ports-import-processing-serial/9049)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 3\
**Last updated:** [March 10, 2019, 3:06am UTC](https://discourse.processing.org/t/trouble-with-multiple-com-ports-import-processing-serial/9049 "2019-03-10T03:06:09Z")

</div>

I am trying to do a data gathering system on the PC. I was planning to use 5 or more HC-06 bluetooth dongles on arduinos and start receiving data in Processing. The system worked fine for one device I could talk back a…

---

## [Problems writing to a binary file](https://discourse.processing.org/t/problems-writing-to-a-binary-file/9158)

<div class="topic-metadata">

**Author:** [@xR4yd](https://discourse.processing.org/u/xR4yd)\
**Replies:** 1\
**Last updated:** [March 10, 2019, 1:50am UTC](https://discourse.processing.org/t/problems-writing-to-a-binary-file/9158 "2019-03-10T01:50:07Z")

</div>

I have recently been trying to write to a binary file using following code: void exportFile() { PrintWriter outFile; String out = ""; outFile = createWriter(outFileName + ".cgespr"); char c = 0; outFile.print…

---

## [Is the variable "width" not defined?](https://discourse.processing.org/t/is-the-variable-width-not-defined/9083)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 3\
**Last updated:** [March 9, 2019, 9:43pm UTC](https://discourse.processing.org/t/is-the-variable-width-not-defined/9083 "2019-03-09T21:43:31Z")

</div>

I’m reading this piece of code and somehow I’m confused. I can not find the definition of “width” anywhere… ////// MAIN INPUTS /////// String directoryName = "${DIRECTORY\_NAME}"; // directory name String date = "${DATE…

---

## [Bezier Curve move weight points](https://discourse.processing.org/t/bezier-curve-move-weight-points/8872)

<div class="topic-metadata">

**Author:** [@ankita](https://discourse.processing.org/u/ankita)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 8:53pm UTC](https://discourse.processing.org/t/bezier-curve-move-weight-points/8872 "2019-03-09T20:53:33Z")

</div>

I have a java code which moves control points (Corner points) according to the mouse movement. I need to modify the code so that it moves the weight points (the points in between the control points) according to the mous…

---

## [Combined code error: "unexpected token: void"](https://discourse.processing.org/t/combined-code-error-unexpected-token-void/9058)

<div class="topic-metadata">

**Author:** [@20ramoant1](https://discourse.processing.org/u/20ramoant1)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 8:56pm UTC](https://discourse.processing.org/t/combined-code-error-unexpected-token-void/9058 "2019-03-09T20:56:35Z")

</div>

I have written a code for a project and when combining the codes I got a “unexpected token: void” error. I get and error on the void “cansleft() {”. Pleas helppp Here is my code import processing.sound.\*; SoundFile fil…

---

## [Placement of objects next to each other](https://discourse.processing.org/t/placement-of-objects-next-to-each-other/9042)

<div class="topic-metadata">

**Author:** [@AmDiBy](https://discourse.processing.org/u/AmDiBy)\
**Replies:** 4\
**Last updated:** [March 9, 2019, 8:50pm UTC](https://discourse.processing.org/t/placement-of-objects-next-to-each-other/9042 "2019-03-09T20:50:55Z")

</div>

Hi Everyone ! I was wondering if any of you could help me by explaining, how to keep the displacement & rotation of the smileys, but make the top of every 2. row hit the middle of the upper row. See example on my sketc…

---

## [IntList in Processing 3](https://discourse.processing.org/t/intlist-in-processing-3/9075)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 8:40pm UTC](https://discourse.processing.org/t/intlist-in-processing-3/9075 "2019-03-09T20:40:18Z")

</div>

I encounter this piece of code. int totalSeconds; Table tripTable; // Table in Processing 3 ArrayList\<Trips\> trips = new ArrayList\<Trips\>(); /// an array which can grow and shrink as needed ArrayList\<String\> opera…

---

## [GSOC projects contribution](https://discourse.processing.org/t/gsoc-projects-contribution/9147)

<div class="topic-metadata">

**Author:** [@ankur\_54](https://discourse.processing.org/u/ankur_54)\
**Replies:** 0\
**Last updated:** [March 9, 2019, 11:53am UTC](https://discourse.processing.org/t/gsoc-projects-contribution/9147 "2019-03-09T11:53:38Z")

</div>

Hello, I am Ankur Mazumder, from IIT Bhubaneshwar. I have fair amount of knowledge in JavaScript and ES6 and have recently learned p5.js. I am interested in the following topics: a) Update p5.js library to ES6 b) Addi…

---

## [New P5/WebGL Library for text!](https://discourse.processing.org/t/new-p5-webgl-library-for-text/9136)

<div class="topic-metadata">

**Author:** [@FreddieRa](https://discourse.processing.org/u/FreddieRa)\
**Replies:** 5\
**Last updated:** [March 9, 2019, 7:20pm UTC](https://discourse.processing.org/t/new-p5-webgl-library-for-text/9136 "2019-03-09T19:20:41Z")

</div>

Hi there! This is a post introducing my p5.js library p5.3D. Built to work with the existing WebGL renderer, this provides an easy and efficient way to render common 2D canvas elements in 3D. This is mainly for text, …

---

## [Visualization of Uber cars using Processing 3 sketch](https://discourse.processing.org/t/visualization-of-uber-cars-using-processing-3-sketch/8999)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 3\
**Last updated:** [March 9, 2019, 4:19pm UTC](https://discourse.processing.org/t/visualization-of-uber-cars-using-processing-3-sketch/8999 "2019-03-09T16:19:59Z")

</div>

Hi. I really like this processing software. I’m fairly new and I need some help. I was thinking to visualize the movement of Uber cars using Processing 3 sketch, unfolding map and python. I encountered this transition-la…

---

## [GSOC 2019, Idea for Improving PDE](https://discourse.processing.org/t/gsoc-2019-idea-for-improving-pde/9143)

<div class="topic-metadata">

**Author:** [@arihant.joshi](https://discourse.processing.org/u/arihant.joshi)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 2:34pm UTC](https://discourse.processing.org/t/gsoc-2019-idea-for-improving-pde/9143 "2019-03-09T14:34:05Z")

</div>

Hi! My name is Arihant Joshi and I am a 3rd Year Engineering student in BITS Pilani. I would like to contribute in Processing for GSoC 2019, and I would like to work towards adding more development tools for the PDE. I…

---

## [Why this would draw the trip?](https://discourse.processing.org/t/why-this-would-draw-the-trip/9086)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 3\
**Last updated:** [March 7, 2019, 5:36pm UTC](https://discourse.processing.org/t/why-this-would-draw-the-trip/9086 "2019-03-07T17:36:47Z")

</div>

I’m reading the following class class Trips { int tripFrames; int startFrame; int endFrame; Location start; Location end; Location currentLocation; ScreenPosition currentPosition; int s; float bearing; float …

---

## [Display full text string without overlap](https://discourse.processing.org/t/display-full-text-string-without-overlap/8946)

<div class="topic-metadata">

**Author:** [@jacobo](https://discourse.processing.org/u/jacobo)\
**Replies:** 12\
**Last updated:** [March 9, 2019, 2:18pm UTC](https://discourse.processing.org/t/display-full-text-string-without-overlap/8946 "2019-03-09T14:18:09Z")

</div>

Hi guys. My string of text overlaps itself instead of filling the x1, y1, x,2 and y,2 area. What is going on? size(700, 1000); String \[\] words2 = loadStrings("byer2.txt"); for ( int k = 0; k \< words2.length; k++) {…

---

## [Array and dist();](https://discourse.processing.org/t/array-and-dist/9150)

<div class="topic-metadata">

**Author:** [@mone](https://discourse.processing.org/u/mone)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 12:55pm UTC](https://discourse.processing.org/t/array-and-dist/9150 "2019-03-09T12:55:18Z")

</div>

I did 2 Arrays of floats to make X and Y positions for a collision system that uses dist(); but I dont know how to put the arrays information on it. The function must work for 15 ellipses that are not implementated but …

---

## [PShape translate xyz](https://discourse.processing.org/t/pshape-translate-xyz/8914)

<div class="topic-metadata">

**Author:** [@coco](https://discourse.processing.org/u/coco)\
**Replies:** 6\
**Last updated:** [March 9, 2019, 9:51am UTC](https://discourse.processing.org/t/pshape-translate-xyz/8914 "2019-03-09T09:51:49Z")

</div>

I am desperately trying to find a workaround for a problem I’ve had for quite a while now with a PShape group (thisModel) that has 60000 BOX PShapes in it in retained mode. When I translate each BOX the program is very s…

---

## [What is the radii argument for rectangles?](https://discourse.processing.org/t/what-is-the-radii-argument-for-rectangles/9129)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 9:09am UTC](https://discourse.processing.org/t/what-is-the-radii-argument-for-rectangles/9129 "2019-03-09T09:09:34Z")

</div>

rectMode(CENTER); rect(0, 0, s\*xscale, s\*yscale, 7); /// 0: x-coordinate, 0: y-coordinate, s\*xscale: width, s\*yscale: height, 7: the radii for all four corner How to understand that 7 is the radii for all four corners …

---

## [Can't use commons math complex numbers](https://discourse.processing.org/t/cant-use-commons-math-complex-numbers/9124)

<div class="topic-metadata">

**Author:** [@aradarbel10](https://discourse.processing.org/u/aradarbel10)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 8:26am UTC](https://discourse.processing.org/t/cant-use-commons-math-complex-numbers/9124 "2019-03-09T08:26:31Z")

</div>

Hello. I recently downloaded commons math liubrary for java and added it to processing. I can import it fine, but when I try writing code the NullPointerException error is sent. I tried creating a simple complex functi…

---

## [\[SOLVED\] Path to file in createWriter?](https://discourse.processing.org/t/solved-path-to-file-in-createwriter/8940)

<div class="topic-metadata">

**Author:** [@WyattStorch](https://discourse.processing.org/u/WyattStorch)\
**Replies:** 14\
**Last updated:** [March 9, 2019, 1:22am UTC](https://discourse.processing.org/t/solved-path-to-file-in-createwriter/8940 "2019-03-09T01:22:08Z")

</div>

Why am I getting this error and how do I fix it? I spent hours searching and am having little luck except discovering that file I/O is, ummm, problematic for beginners in Java. I am experimenting with Processing 3.5.3 i…

---

## [Text on a sphere](https://discourse.processing.org/t/text-on-a-sphere/8960)

<div class="topic-metadata">

**Author:** [@MathFinsen](https://discourse.processing.org/u/MathFinsen)\
**Replies:** 9\
**Last updated:** [March 9, 2019, 1:14am UTC](https://discourse.processing.org/t/text-on-a-sphere/8960 "2019-03-09T01:14:57Z")

</div>

Hi guys I would like to know how I wrap text around sphere shape that I can rotate? I’m asking for a similar look as www.spacetypegenerator.com If any of you can guide me in the right direction, I would be great full! …

---

## [Key == someVariable does not work](https://discourse.processing.org/t/key-somevariable-does-not-work/9130)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 1\
**Last updated:** [March 9, 2019, 12:22am UTC](https://discourse.processing.org/t/key-somevariable-does-not-work/9130 "2019-03-09T00:22:00Z")

</div>

I’d like to use a variable (int) with the key function, but it doesn’t work with or without single quotes. What can I do? if(key == someVariable){ … } Thank you!

---

## [How does map.draw() function in Unfolding Map work?](https://discourse.processing.org/t/how-does-map-draw-function-in-unfolding-map-work/9125)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 1\
**Last updated:** [March 9, 2019, 12:09am UTC](https://discourse.processing.org/t/how-does-map-draw-function-in-unfolding-map-work/9125 "2019-03-09T00:09:14Z")

</div>

Hi, I was trying to search information about this map.draw() function, but I did not find anything about this at all. Could anyone kindly let me know the purpose of this function or point to some links/references? The f…

---

## [VT100 in processing](https://discourse.processing.org/t/vt100-in-processing/9039)

<div class="topic-metadata">

**Author:** [@Dolomiti](https://discourse.processing.org/u/Dolomiti)\
**Replies:** 1\
**Last updated:** [March 9, 2019, 12:06am UTC](https://discourse.processing.org/t/vt100-in-processing/9039 "2019-03-09T00:06:56Z")

</div>

Hello friends. It is possible to make a VT100 hyperterminal in processing. I have not seen any forum thread on this topic. Thanks and best regards Charli

---

## [Opendmx ft232 no output](https://discourse.processing.org/t/opendmx-ft232-no-output/8934)

<div class="topic-metadata">

**Author:** [@spiderdab](https://discourse.processing.org/u/spiderdab)\
**Replies:** 3\
**Last updated:** [March 8, 2019, 11:43pm UTC](https://discourse.processing.org/t/opendmx-ft232-no-output/8934 "2019-03-08T23:43:36Z")

</div>

Hi, first time writing on this new platform, but have been on the old forum for years. I need to implement a particular dmx software to control some dmx winch. The problem I have is I want to use a entec opendmx usb co…

---

## [Cannot be resolved or is not a field error](https://discourse.processing.org/t/cannot-be-resolved-or-is-not-a-field-error/9001)

<div class="topic-metadata">

**Author:** [@kennyd](https://discourse.processing.org/u/kennyd)\
**Replies:** 1\
**Last updated:** [March 8, 2019, 11:39pm UTC](https://discourse.processing.org/t/cannot-be-resolved-or-is-not-a-field-error/9001 "2019-03-08T23:39:56Z")

</div>

Good morning, I’m fairly new to processing, and ran into some trouble with my code regarding an error “body cannot be resolved or is not a field”. Processing also tells me that the global variable body does not exist, d…

---

## [Question on GameControlPlus](https://discourse.processing.org/t/question-on-gamecontrolplus/9011)

<div class="topic-metadata">

**Author:** [@alan856](https://discourse.processing.org/u/alan856)\
**Replies:** 1\
**Last updated:** [March 8, 2019, 11:25pm UTC](https://discourse.processing.org/t/question-on-gamecontrolplus/9011 "2019-03-08T23:25:12Z")

</div>

Greetings! I’m building a custom joystick using an Arduino Micro to be used expressly with GameControlPlus. I’m using the Joystick (v2) library to have the stick show up as an HID device. GCP IS sing it so I’m almost t…

---

## [How to set pots in custom joystick for GameControlPlus](https://discourse.processing.org/t/how-to-set-pots-in-custom-joystick-for-gamecontrolplus/8974)

<div class="topic-metadata">

**Author:** [@alan856](https://discourse.processing.org/u/alan856)\
**Replies:** 7\
**Last updated:** [March 8, 2019, 7:37pm UTC](https://discourse.processing.org/t/how-to-set-pots-in-custom-joystick-for-gamecontrolplus/8974 "2019-03-08T19:37:42Z")

</div>

I’m building a custom joystick to be used with Processing via GameControlPlus. Just wondering if the pots should be at center of resistance when the stick is at zero/centered.

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=513)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=515)
