# Latest

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

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

**Page:** 581

---

## [Loading a client text file into a String array](https://discourse.processing.org/t/loading-a-client-text-file-into-a-string-array/3947)

<div class="topic-metadata">

**Author:** [@desk](https://discourse.processing.org/u/desk)\
**Replies:** 2\
**Last updated:** [September 29, 2018, 6:23am UTC](https://discourse.processing.org/t/loading-a-client-text-file-into-a-string-array/3947 "2018-09-29T06:23:23Z")

</div>

I’m a bit new to js. I’m not sure how to load a file. The following code does not work. input2 = createFileInput(handleFile2); input2.position(width/2, height/2); function handleFile2(file) { var lines = loadStri…

---

## [Video data size limit error](https://discourse.processing.org/t/video-data-size-limit-error/3769)

<div class="topic-metadata">

**Author:** [@desk](https://discourse.processing.org/u/desk)\
**Replies:** 8\
**Last updated:** [September 29, 2018, 3:40am UTC](https://discourse.processing.org/t/video-data-size-limit-error/3769 "2018-09-29T03:40:09Z")

</div>

I am running into an error when attempting to load video which is around 200MB in size. allocation size overflow p5.dom.js:807:15 The error doesn’t occur with small videos. please help, thanks

---

## [Use path of selected folder for next selection as default value](https://discourse.processing.org/t/use-path-of-selected-folder-for-next-selection-as-default-value/3914)

<div class="topic-metadata">

**Author:** [@El\_Paco](https://discourse.processing.org/u/El_Paco)\
**Replies:** 4\
**Last updated:** [September 28, 2018, 7:42am UTC](https://discourse.processing.org/t/use-path-of-selected-folder-for-next-selection-as-default-value/3914 "2018-09-28T07:42:48Z")

</div>

Hello , i’m totally new to processing - i had one huge but sure simple topic. I need to modify a processing program with many subfiles. It had a gui - for this is g4p\_controls used. in the gui i can open data files. …

---

## [Weird out of bounds issue with the sound library](https://discourse.processing.org/t/weird-out-of-bounds-issue-with-the-sound-library/2810)

<div class="topic-metadata">

**Author:** [@ducco](https://discourse.processing.org/u/ducco)\
**Replies:** 4\
**Last updated:** [September 29, 2018, 12:10am UTC](https://discourse.processing.org/t/weird-out-of-bounds-issue-with-the-sound-library/2810 "2018-09-29T00:10:25Z")

</div>

i’m working on a game and i want to add sound effects so i installed the sound library but every time i try to load a sound it returns “ArrayIndexOutOfBoundsExeption: -1” and i don’t understand why. the sound file is in …

---

## [Planning for publishing - best approach?](https://discourse.processing.org/t/planning-for-publishing-best-approach/3893)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 5\
**Last updated:** [September 28, 2018, 10:50pm UTC](https://discourse.processing.org/t/planning-for-publishing-best-approach/3893 "2018-09-28T22:50:33Z")

</div>

I am playing with Processing on my laptop and will be wanting to make my sketches more widely available. I get that Android is a separate thing which may require code mods and also also may have extra affordances, and…

---

## [Fill() does not accept hexidecimal?](https://discourse.processing.org/t/fill-does-not-accept-hexidecimal/3920)

<div class="topic-metadata">

**Author:** [@HoboGreed](https://discourse.processing.org/u/HoboGreed)\
**Replies:** 3\
**Last updated:** [September 28, 2018, 9:56pm UTC](https://discourse.processing.org/t/fill-does-not-accept-hexidecimal/3920 "2018-09-28T21:56:27Z")

</div>

function setup() { createCanvas(500,700); background(0); } function draw() { //fill(0xffff0000); // no hexidecimal ? fill(255,255,0); ellipse(200,200,250); }

---

## [Problem with Control P5 font](https://discourse.processing.org/t/problem-with-control-p5-font/3717)

<div class="topic-metadata">

**Author:** [@239ahmf](https://discourse.processing.org/u/239ahmf)\
**Replies:** 8\
**Last updated:** [September 28, 2018, 10:21pm UTC](https://discourse.processing.org/t/problem-with-control-p5-font/3717 "2018-09-28T22:21:31Z")

</div>

Hi there! Im new to processing and I have been trying to run a model however I seem to have run into this problem Is there any solution to this problem? When I first tried to run the model it gave the following errors…

---

## [Trouble with bluetooth BLE connection between Pi3 and Blueduino](https://discourse.processing.org/t/trouble-with-bluetooth-ble-connection-between-pi3-and-blueduino/3578)

<div class="topic-metadata">

**Author:** [@jb4x](https://discourse.processing.org/u/jb4x)\
**Replies:** 15\
**Last updated:** [September 28, 2018, 7:36pm UTC](https://discourse.processing.org/t/trouble-with-bluetooth-ble-connection-between-pi3-and-blueduino/3578 "2018-09-28T19:36:30Z")

</div>

Hi everyone, I have a processing sketch that gather some data every frames. Then I would need to send those data to a blueduino (basically an arduino with an integrated BLE module) that can then use them to light some L…

---

## [Image processing of webcam video (dithering)](https://discourse.processing.org/t/image-processing-of-webcam-video-dithering/3904)

<div class="topic-metadata">

**Author:** [@gramalam](https://discourse.processing.org/u/gramalam)\
**Replies:** 3\
**Last updated:** [September 28, 2018, 6:58pm UTC](https://discourse.processing.org/t/image-processing-of-webcam-video-dithering/3904 "2018-09-28T18:58:58Z")

</div>

hello! I am hoping to get someone to look at what I’ve written and help me troubleshoot. below is a link to the sketch written in the web editor, with a goal of applying a dithering effect to streamed video from a webca…

---

## [How do I make a line of code one variable?](https://discourse.processing.org/t/how-do-i-make-a-line-of-code-one-variable/3937)

<div class="topic-metadata">

**Author:** [@RienziDeal](https://discourse.processing.org/u/RienziDeal)\
**Replies:** 2\
**Last updated:** [September 28, 2018, 6:16pm UTC](https://discourse.processing.org/t/how-do-i-make-a-line-of-code-one-variable/3937 "2018-09-28T18:16:55Z")

</div>

Hi there, I don’t know if there’s a way to do this but I have a rect() function in my code and I want to know if it’s possible to group the line of code as a variable to make it all move at once. Read more at the bottom…

---

## [createShape() and lerp()](https://discourse.processing.org/t/createshape-and-lerp/3392)

<div class="topic-metadata">

**Author:** [@BrokenCode](https://discourse.processing.org/u/BrokenCode)\
**Replies:** 23\
**Last updated:** [September 28, 2018, 5:50pm UTC](https://discourse.processing.org/t/createshape-and-lerp/3392 "2018-09-28T17:50:46Z")

</div>

Hello everyone, from the last topic, I think it’s time to open a new one, because the argument of it it’s totally changed, so, here’s a over simplified code: int points = 3; ArrayList\<PVector\> olPosition; ArrayList\<PVe…

---

## [Smooth() for android](https://discourse.processing.org/t/smooth-for-android/3909)

<div class="topic-metadata">

**Author:** [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Replies:** 9\
**Last updated:** [September 28, 2018, 12:19pm UTC](https://discourse.processing.org/t/smooth-for-android/3909 "2018-09-28T12:19:21Z")

</div>

Is it possible to get the smooth() function to work on processing for android? all my graphics have non-smooth edges whether i use the function or not. if not is there any other way i can anti alias my graphics? thanks.

---

## [Strange ball behaviour](https://discourse.processing.org/t/strange-ball-behaviour/3931)

<div class="topic-metadata">

**Author:** [@Alexstrinda](https://discourse.processing.org/u/Alexstrinda)\
**Replies:** 1\
**Last updated:** [September 28, 2018, 12:06pm UTC](https://discourse.processing.org/t/strange-ball-behaviour/3931 "2018-09-28T12:06:34Z")

</div>

I wrote a very simple code that doesn’t work as expected. I could have fixed it with a patch or something similar, however, I am really interested in the logical flaw that leads to the problem. The issue is that the bal…

---

## [Get accelerometer free from the frame-rate](https://discourse.processing.org/t/get-accelerometer-free-from-the-frame-rate/3866)

<div class="topic-metadata">

**Author:** [@chanof](https://discourse.processing.org/u/chanof)\
**Replies:** 2\
**Last updated:** [September 26, 2018, 10:59pm UTC](https://discourse.processing.org/t/get-accelerometer-free-from-the-frame-rate/3866 "2018-09-26T22:59:13Z")

</div>

Hi there! May i ask a help to understand how to get accelerometer free from frame-rate? Currently i using it as the tutorial below teach, I need sensor to drive sound fx, my currently framerate is only 16 fps and i can…

---

## [How to download the video library manually](https://discourse.processing.org/t/how-to-download-the-video-library-manually/3905)

<div class="topic-metadata">

**Author:** [@TomB](https://discourse.processing.org/u/TomB)\
**Replies:** 6\
**Last updated:** [September 27, 2018, 7:43pm UTC](https://discourse.processing.org/t/how-to-download-the-video-library-manually/3905 "2018-09-27T19:43:24Z")

</div>

I can’t install the processing-video library via the Contribution Manager. How would I go about installing manually? I can’t find an URL for download. The GitHub repository doesn’t seem to contain the install.

---

## [Text Not Displaying In Console](https://discourse.processing.org/t/text-not-displaying-in-console/3581)

<div class="topic-metadata">

**Author:** [@HoboGreed](https://discourse.processing.org/u/HoboGreed)\
**Replies:** 14\
**Last updated:** [September 27, 2018, 7:15pm UTC](https://discourse.processing.org/t/text-not-displaying-in-console/3581 "2018-09-27T19:15:14Z")

</div>

Hard to be a noob…why isn’t print displaying in the console? function setup() { createCanvas(500,500); print("ummmmmmm....."); } function draw() { }

---

## [How to use for loop to plot the data into the graph?](https://discourse.processing.org/t/how-to-use-for-loop-to-plot-the-data-into-the-graph/3880)

<div class="topic-metadata">

**Author:** [@bread](https://discourse.processing.org/u/bread)\
**Replies:** 5\
**Last updated:** [September 27, 2018, 3:39pm UTC](https://discourse.processing.org/t/how-to-use-for-loop-to-plot-the-data-into-the-graph/3880 "2018-09-27T15:39:59Z")

</div>

This is the scatter plot graph that I need to plot the data in. How to use the for loop code to plot the data in? Also how to make different shapes to represent the shape under the for loop code?

---

## [Custom Patterned Pixelated image with custom palette of colors](https://discourse.processing.org/t/custom-patterned-pixelated-image-with-custom-palette-of-colors/3864)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 5\
**Last updated:** [September 27, 2018, 3:18pm UTC](https://discourse.processing.org/t/custom-patterned-pixelated-image-with-custom-palette-of-colors/3864 "2018-09-27T15:18:31Z")

</div>

Hello The above image shows concentric circle pixelated pattern and the link shows an image with strip pixelated pattern. My question is can I impose this type of patterns on an image but with my custom palette …

---

## [360 controller trigger axis](https://discourse.processing.org/t/360-controller-trigger-axis/3881)

<div class="topic-metadata">

**Author:** [@lmccandless](https://discourse.processing.org/u/lmccandless)\
**Replies:** 0\
**Last updated:** [September 26, 2018, 10:21pm UTC](https://discourse.processing.org/t/360-controller-trigger-axis/3881 "2018-09-26T22:21:16Z")

</div>

I’m trying to use an xbox 360 controller, and I need both analog triggers to work. Game Control Plus puts both of the triggers onto the same axis, in opposite directions. So pulling both analog triggers all the way in, …

---

## [Math with Colors](https://discourse.processing.org/t/math-with-colors/3847)

<div class="topic-metadata">

**Author:** [@Turbo012](https://discourse.processing.org/u/Turbo012)\
**Replies:** 14\
**Last updated:** [September 27, 2018, 11:07am UTC](https://discourse.processing.org/t/math-with-colors/3847 "2018-09-27T11:07:44Z")

</div>

I was wondering if there’s a way to use addition or subtraction on the hex values for color to go up or go down a value. I tested out a sketch but the colors are limited telling me there’s a loop around with only a spec…

---

## [Change in Java11 license](https://discourse.processing.org/t/change-in-java11-license/3859)

<div class="topic-metadata">

**Author:** [@xuv](https://discourse.processing.org/u/xuv)\
**Replies:** 2\
**Last updated:** [September 27, 2018, 7:22am UTC](https://discourse.processing.org/t/change-in-java11-license/3859 "2018-09-27T07:22:05Z")

</div>

I just read this article on the new Java11 license by Oracle and thought about the possible impact on Processing and its community. According to the author, the license now says: You may not: use the Programs for any …

---

## [How can I make wired communication(Serial) with my smartphone and Arduino?](https://discourse.processing.org/t/how-can-i-make-wired-communication-serial-with-my-smartphone-and-arduino/3889)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [September 27, 2018, 7:05am UTC](https://discourse.processing.org/t/how-can-i-make-wired-communication-serial-with-my-smartphone-and-arduino/3889 "2018-09-27T07:05:06Z")

</div>

How can I make wired communication (Serial) with my smartphone and Arduino? \[Processing android mode\] I want to make serial communication through a processing tool (at android mode). Please let me know about example c…

---

## [Box2D library installation error](https://discourse.processing.org/t/box2d-library-installation-error/3886)

<div class="topic-metadata">

**Author:** [@apac](https://discourse.processing.org/u/apac)\
**Replies:** 6\
**Last updated:** [September 27, 2018, 6:56am UTC](https://discourse.processing.org/t/box2d-library-installation-error/3886 "2018-09-27T06:56:26Z")

</div>

I have used Box2D examples from Nature of Code before. However, when I tried to run an example today, I got these errors: No library found for shiffman.box2d No library found for org.jbox2d.collision.shapes No library…

---

## [Open Source project](https://discourse.processing.org/t/open-source-project/3888)

<div class="topic-metadata">

**Author:** [@prajurock](https://discourse.processing.org/u/prajurock)\
**Replies:** 3\
**Last updated:** [September 27, 2018, 6:10am UTC](https://discourse.processing.org/t/open-source-project/3888 "2018-09-27T06:10:18Z")

</div>

How to get open source project.

---

## [Strange float behaviors (integer division)](https://discourse.processing.org/t/strange-float-behaviors-integer-division/3867)

<div class="topic-metadata">

**Author:** [@mloiz](https://discourse.processing.org/u/mloiz)\
**Replies:** 2\
**Last updated:** [September 27, 2018, 1:43am UTC](https://discourse.processing.org/t/strange-float-behaviors-integer-division/3867 "2018-09-27T01:43:09Z")

</div>

i dont get this : and if I said oi = PI/2 it does work … thank you

---

## [For Loop, populate array with data from the loop](https://discourse.processing.org/t/for-loop-populate-array-with-data-from-the-loop/3853)

<div class="topic-metadata">

**Author:** [@m3talsix66](https://discourse.processing.org/u/m3talsix66)\
**Replies:** 2\
**Last updated:** [September 27, 2018, 1:30am UTC](https://discourse.processing.org/t/for-loop-populate-array-with-data-from-the-loop/3853 "2018-09-27T01:30:25Z")

</div>

Hi I am using an example from Arduino - processing serial communication. I am sending variables from my arduino and want to set the variables in processing from these. import processing.serial.\*; // import the Proce…

---

## [Shift camera in live](https://discourse.processing.org/t/shift-camera-in-live/3876)

<div class="topic-metadata">

**Author:** [@Hoshi](https://discourse.processing.org/u/Hoshi)\
**Replies:** 2\
**Last updated:** [September 27, 2018, 12:50am UTC](https://discourse.processing.org/t/shift-camera-in-live/3876 "2018-09-27T00:50:26Z")

</div>

Hello ! I’m a french student in art, and i’m trying to program the shift diffusion of a video captured by a webcam in live. I don’t know how to do, how to program this. Thanks for your help!

---

## [Using TensorFlow.js and p5js to fit a curve to a synthetic dataset](https://discourse.processing.org/t/using-tensorflow-js-and-p5js-to-fit-a-curve-to-a-synthetic-dataset/3878)

<div class="topic-metadata">

**Author:** [@atoro](https://discourse.processing.org/u/atoro)\
**Replies:** 0\
**Last updated:** [September 26, 2018, 7:43pm UTC](https://discourse.processing.org/t/using-tensorflow-js-and-p5js-to-fit-a-curve-to-a-synthetic-dataset/3878 "2018-09-26T19:43:52Z")

</div>

Click here to see a short demo animation (as an animated GIF) This example uses TensorFlow.js to build a model and learn its coefficients. The basic idea is very similar to the tutorial Fitting a Curve to Synthetic …

---

## [TrackBall: rotating 3D objects by dragging mouse](https://discourse.processing.org/t/trackball-rotating-3d-objects-by-dragging-mouse/3834)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 1\
**Last updated:** [September 26, 2018, 5:44pm UTC](https://discourse.processing.org/t/trackball-rotating-3d-objects-by-dragging-mouse/3834 "2018-09-26T17:44:12Z")

</div>

I wrote this today for a project I’m working on. Maybe useful for someone? The idea is to drag objects in 3D to rotate them. (watch video) // A collection of trackballs. They can be rotated and // they keep the rota…

---

## [Rotate / Pendulum swing array of letters](https://discourse.processing.org/t/rotate-pendulum-swing-array-of-letters/3759)

<div class="topic-metadata">

**Author:** [@Keks](https://discourse.processing.org/u/Keks)\
**Replies:** 6\
**Last updated:** [September 26, 2018, 5:24pm UTC](https://discourse.processing.org/t/rotate-pendulum-swing-array-of-letters/3759 "2018-09-26T17:24:24Z")

</div>

Hello I am working with superimposed text and trying to create an animate version of this image. . It is basically two superimposed blocks of letters rotated at their center in opposite directions. I want to get each b…

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

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