# Latest

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

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

**Page:** 598

---

## [Video autoplay fails in Chrome: "play() failed because the user didn't interact with the document first"](https://discourse.processing.org/t/video-autoplay-fails-in-chrome-play-failed-because-the-user-didnt-interact-with-the-document-first/1726)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 2\
**Last updated:** [August 8, 2018, 11:03am UTC](https://discourse.processing.org/t/video-autoplay-fails-in-chrome-play-failed-because-the-user-didnt-interact-with-the-document-first/1726 "2018-08-08T11:03:42Z")

</div>

Hi everyone. Under recent Google Chrome version (for instance 67.0.3396.99 (Official Build) (64-bit) it is not possible to play a video immediately after the program is started (that means the ‘index.html’ file and .js …

---

## [Camera following a "path"](https://discourse.processing.org/t/camera-following-a-path/2468)

<div class="topic-metadata">

**Author:** [@marcoctn](https://discourse.processing.org/u/marcoctn)\
**Replies:** 0\
**Last updated:** [August 8, 2018, 9:15am UTC](https://discourse.processing.org/t/camera-following-a-path/2468 "2018-08-08T09:15:00Z")

</div>

Good morning all, this is my first post :slight\_smile: I have what I hope is a simple question. In the code below, I made a 3d tunnel with a camera that goes in it. if I want to make the tunnel curve, how can I have t…

---

## [G4P dropList number of elements](https://discourse.processing.org/t/g4p-droplist-number-of-elements/2434)

<div class="topic-metadata">

**Author:** [@MxFxM](https://discourse.processing.org/u/MxFxM)\
**Replies:** 4\
**Last updated:** [August 8, 2018, 8:39am UTC](https://discourse.processing.org/t/g4p-droplist-number-of-elements/2434 "2018-08-08T08:39:41Z")

</div>

Hi, the maximum number of elements shown in the dropList (when expanded) seems to be 10. Is there a way to increase the number (I want 20 :slight\_smile: )? Thanks

---

## [Button Function Problem](https://discourse.processing.org/t/button-function-problem/2445)

<div class="topic-metadata">

**Author:** [@imaginativeCODE](https://discourse.processing.org/u/imaginativeCODE)\
**Replies:** 11\
**Last updated:** [August 8, 2018, 8:23am UTC](https://discourse.processing.org/t/button-function-problem/2445 "2018-08-08T08:23:57Z")

</div>

I am having trouble making a button function. The problem that I am having is that the “Value” that I put in the function won’t change to “ChangeToThisValue” if the conditions are correct. For example if conditions are c…

---

## [Code simplification](https://discourse.processing.org/t/code-simplification/2444)

<div class="topic-metadata">

**Author:** [@hugo](https://discourse.processing.org/u/hugo)\
**Replies:** 3\
**Last updated:** [August 8, 2018, 8:18am UTC](https://discourse.processing.org/t/code-simplification/2444 "2018-08-08T08:18:45Z")

</div>

Hello , Is there a way to simplify the next line : int A2=1,A3=1,A4=1,A5=1,A6=1; thank you.

---

## [My ball is sticking to the wall and cant move](https://discourse.processing.org/t/my-ball-is-sticking-to-the-wall-and-cant-move/884)

<div class="topic-metadata">

**Author:** [@survivalspace2001](https://discourse.processing.org/u/survivalspace2001)\
**Replies:** 2\
**Last updated:** [August 8, 2018, 12:46am UTC](https://discourse.processing.org/t/my-ball-is-sticking-to-the-wall-and-cant-move/884 "2018-08-08T00:46:14Z")

</div>

uhm hi im quite new but ive started to take classes of programming with processing this is my 3rd or 4th lesson or so, so please dont mind the cringy piece of code but i need help because im trying to make a game whe…

---

## [getElementById is not a function - styling elements made in p5.js](https://discourse.processing.org/t/getelementbyid-is-not-a-function-styling-elements-made-in-p5-js/2456)

<div class="topic-metadata">

**Author:** [@LWoodall](https://discourse.processing.org/u/LWoodall)\
**Replies:** 1\
**Last updated:** [August 7, 2018, 9:13pm UTC](https://discourse.processing.org/t/getelementbyid-is-not-a-function-styling-elements-made-in-p5-js/2456 "2018-08-07T21:13:03Z")

</div>

var url1 = 'https://api.wordnik.com/v4/word.json/'; var word = 'vinyl'; var url2 = '/examples?includeDuplicates=false&useCanonical=false&limit=5&api\_key=MY\_API\_KEY'; var input; var submit; var example; function setup() …

---

## [Control P5 slowdown](https://discourse.processing.org/t/control-p5-slowdown/2250)

<div class="topic-metadata">

**Author:** [@philspitler](https://discourse.processing.org/u/philspitler)\
**Replies:** 18\
**Last updated:** [August 7, 2018, 7:32pm UTC](https://discourse.processing.org/t/control-p5-slowdown/2250 "2018-08-07T19:32:07Z")

</div>

I have a weird issue where my sketch gets slower and slower the more Control P5 buttons I have. This behavior only shows up in Android mode, it seems fine when running in Java on OSX. If you look at my code you will see…

---

## [Show Image in P3D space?](https://discourse.processing.org/t/show-image-in-p3d-space/2419)

<div class="topic-metadata">

**Author:** [@Mandelbrot](https://discourse.processing.org/u/Mandelbrot)\
**Replies:** 8\
**Last updated:** [August 7, 2018, 4:50pm UTC](https://discourse.processing.org/t/show-image-in-p3d-space/2419 "2018-08-07T16:50:41Z")

</div>

I have a P3D window in full screen mode: fullScreen(P3D). I am rotating a 3d model around, and would like to overlay an image over the screen, so that it is always on top of all elements. How can I do this? I’ve tried j…

---

## [Drawing a radar with CSV file reading error](https://discourse.processing.org/t/drawing-a-radar-with-csv-file-reading-error/2441)

<div class="topic-metadata">

**Author:** [@Charlie](https://discourse.processing.org/u/Charlie)\
**Replies:** 2\
**Last updated:** [August 7, 2018, 3:42pm UTC](https://discourse.processing.org/t/drawing-a-radar-with-csv-file-reading-error/2441 "2018-08-07T15:42:18Z")

</div>

Hi! Nowadays I’m trying to draw radar with csv file. csv file format is like (date, x, y) example : 181743,78,152 181744,123,512 181745,126,341 181746,153,153 181747,173,175 and so on This is my code float a; …

---

## [Python code conversion to processing Java](https://discourse.processing.org/t/python-code-conversion-to-processing-java/2438)

<div class="topic-metadata">

**Author:** [@fun](https://discourse.processing.org/u/fun)\
**Replies:** 7\
**Last updated:** [August 7, 2018, 1:52pm UTC](https://discourse.processing.org/t/python-code-conversion-to-processing-java/2438 "2018-08-07T13:52:45Z")

</div>

I have been fighting with some python code I found on the web, and I dont get it. How can I do this in Processing / Java ? Interesting webpage with super ideas: There is a nice kind of step sorting, that kind of doe…

---

## [Can a 'current project' be set in Processing IDE](https://discourse.processing.org/t/can-a-current-project-be-set-in-processing-ide/2422)

<div class="topic-metadata">

**Author:** [@alan856](https://discourse.processing.org/u/alan856)\
**Replies:** 2\
**Last updated:** [August 7, 2018, 10:03am UTC](https://discourse.processing.org/t/can-a-current-project-be-set-in-processing-ide/2422 "2018-08-07T10:03:42Z")

</div>

WIth the current IDE 4 steps are needed to return to an ongoing project: FIrst you must go to 'recent projects, select the one wanted. It the pops open on top of the blank starter project which needs to be then dismisse…

---

## [Assigning colours to data in 2D array](https://discourse.processing.org/t/assigning-colours-to-data-in-2d-array/2411)

<div class="topic-metadata">

**Author:** [@santamagica](https://discourse.processing.org/u/santamagica)\
**Replies:** 5\
**Last updated:** [August 7, 2018, 9:45am UTC](https://discourse.processing.org/t/assigning-colours-to-data-in-2d-array/2411 "2018-08-07T09:45:45Z")

</div>

Hello all, For a geographical project I want to assign colours to data stored in a 2D array. I tried many things. I think I am just missing one small line of code, but I just can’t get my head around it. This is the cod…

---

## [Minim - android, help with library](https://discourse.processing.org/t/minim-android-help-with-library/2407)

<div class="topic-metadata">

**Author:** [@jvm](https://discourse.processing.org/u/jvm)\
**Replies:** 2\
**Last updated:** [August 7, 2018, 6:47am UTC](https://discourse.processing.org/t/minim-android-help-with-library/2407 "2018-08-07T06:47:25Z")

</div>

Howdy, I’ve been trying to create a simple signal generator with Processing for Android. With non-android processing, minim has been awesome, however it cannot be used directly with android. There is an implementation …

---

## [Sketch not working after upgrade to High Sierra](https://discourse.processing.org/t/sketch-not-working-after-upgrade-to-high-sierra/2425)

<div class="topic-metadata">

**Author:** [@egorozpe](https://discourse.processing.org/u/egorozpe)\
**Replies:** 3\
**Last updated:** [August 7, 2018, 6:38am UTC](https://discourse.processing.org/t/sketch-not-working-after-upgrade-to-high-sierra/2425 "2018-08-07T06:38:47Z")

</div>

I have a sketch that I use for mapping urban space, which shows in the background some photos named C\_0001, C\_0002, and so on. It is setup to show the images in the normal order (1,2,3,4 etc.) It was working just fine un…

---

## [Moving text with regular updates](https://discourse.processing.org/t/moving-text-with-regular-updates/257)

<div class="topic-metadata">

**Author:** [@LindowMan](https://discourse.processing.org/u/LindowMan)\
**Replies:** 3\
**Last updated:** [August 7, 2018, 1:29am UTC](https://discourse.processing.org/t/moving-text-with-regular-updates/257 "2018-08-07T01:29:46Z")

</div>

Hello! So, fairly new to processing here. I am working on a school project now where I need text (the text is coming from a csv-file) to appear and stay on screen. In regular intervals, the text drops down (30 pixels …

---

## [Help with Shapes overlapping](https://discourse.processing.org/t/help-with-shapes-overlapping/967)

<div class="topic-metadata">

**Author:** [@RennyGH](https://discourse.processing.org/u/RennyGH)\
**Replies:** 2\
**Last updated:** [August 7, 2018, 12:38am UTC](https://discourse.processing.org/t/help-with-shapes-overlapping/967 "2018-08-07T00:38:07Z")

</div>

So the way I want this to work is making it so if the user clicks they get taken to their lock screen, however, when I click the screen is over all of the content that’s supposed to be displayed. size(1000,1000); backgr…

---

## [How can i convert textbox value to integer?](https://discourse.processing.org/t/how-can-i-convert-textbox-value-to-integer/834)

<div class="topic-metadata">

**Author:** [@BeyzaK](https://discourse.processing.org/u/BeyzaK)\
**Replies:** 2\
**Last updated:** [August 7, 2018, 12:28am UTC](https://discourse.processing.org/t/how-can-i-convert-textbox-value-to-integer/834 "2018-08-07T00:28:07Z")

</div>

I’m trying to control stepper motor by arduino and processing. I want to control the step value of motor which I entered the interface textbox but it doesnt work and program give error always. Arduino Code #include \<AF…

---

## [How to draw chiseled lines in processing?](https://discourse.processing.org/t/how-to-draw-chiseled-lines-in-processing/2417)

<div class="topic-metadata">

**Author:** [@charliebrown](https://discourse.processing.org/u/charliebrown)\
**Replies:** 4\
**Last updated:** [August 6, 2018, 9:26pm UTC](https://discourse.processing.org/t/how-to-draw-chiseled-lines-in-processing/2417 "2018-08-06T21:26:51Z")

</div>

I wish to draw chiseled lines in processing. I tried to use strokeCap() and strokeJoin() functions but they didn’t give me the behaviour I wanted. I have attached a sketch(made using Autodesk SketchBook) of the effect th…

---

## [JUnit Tests with Processing in Eclipse](https://discourse.processing.org/t/junit-tests-with-processing-in-eclipse/2426)

<div class="topic-metadata">

**Author:** [@widemouthfrog1](https://discourse.processing.org/u/widemouthfrog1)\
**Replies:** 8\
**Last updated:** [August 6, 2018, 11:08pm UTC](https://discourse.processing.org/t/junit-tests-with-processing-in-eclipse/2426 "2018-08-06T23:08:59Z")

</div>

I’m trying to get JUnit tests working with Processing but I’m not sure how to go about it. Every way I’ve tried either ends up with a ClassNotFoundException, or says size() cannot be used here (when I use Main app = new …

---

## [Fibonacci spiral](https://discourse.processing.org/t/fibonacci-spiral/2358)

<div class="topic-metadata">

**Author:** [@AbuYazid](https://discourse.processing.org/u/AbuYazid)\
**Replies:** 6\
**Last updated:** [August 6, 2018, 7:26pm UTC](https://discourse.processing.org/t/fibonacci-spiral/2358 "2018-08-06T19:26:40Z")

</div>

Hi geeks, can you guys help to draw a fibonacci spiral ?

---

## [Easiest way to map 0 to 360 degrees with 0 at 12 o’clock](https://discourse.processing.org/t/easiest-way-to-map-0-to-360-degrees-with-0-at-12-o-clock/2372)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 6\
**Last updated:** [August 6, 2018, 6:21pm UTC](https://discourse.processing.org/t/easiest-way-to-map-0-to-360-degrees-with-0-at-12-o-clock/2372 "2018-08-06T18:21:15Z")

</div>

I want to make an interface for rotation when mouseX, mouseY are rotated around a circle it will output 0 - 360 degrees with 0 being at 12 o’clock. I have tried a few ways to do this but it’s not working. This is the cl…

---

## [Switching javascript neural network to java](https://discourse.processing.org/t/switching-javascript-neural-network-to-java/1857)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 17\
**Last updated:** [August 6, 2018, 6:17pm UTC](https://discourse.processing.org/t/switching-javascript-neural-network-to-java/1857 "2018-08-06T18:17:24Z")

</div>

OK, I’m trying to convert javascript code from coding train 10.13 neural network to java & having trouble. here my code in java NeuralNetwork nn; void setup(){ nn = new NeuralNetwork(2,2,1); float \[\] input = new fl…

---

## [A projection-mapped installation, designed and coded with Processing](https://discourse.processing.org/t/a-projection-mapped-installation-designed-and-coded-with-processing/2369)

<div class="topic-metadata">

**Author:** [@alexmiller](https://discourse.processing.org/u/alexmiller)\
**Replies:** 7\
**Last updated:** [August 6, 2018, 5:40pm UTC](https://discourse.processing.org/t/a-projection-mapped-installation-designed-and-coded-with-processing/2369 "2018-08-06T17:40:27Z")

</div>

I recently used Processing to both design a physical topographic map and projection-map it with generative visuals. Here’s a short making-of video that explains how we made it: Would be glad to get feed…

---

## [Display Teapot and Graph](https://discourse.processing.org/t/display-teapot-and-graph/2413)

<div class="topic-metadata">

**Author:** [@DragosMDx](https://discourse.processing.org/u/DragosMDx)\
**Replies:** 2\
**Last updated:** [August 6, 2018, 2:01pm UTC](https://discourse.processing.org/t/display-teapot-and-graph/2413 "2018-08-06T14:01:17Z")

</div>

Hi, I have the Teapot code https://gist.github.com/cooperaj/10965142 and I would like to know how can I create a graph in the right side with the values that the air plane receives ? Any indications will be very helpfu…

---

## [Processing and pure data](https://discourse.processing.org/t/processing-and-pure-data/2394)

<div class="topic-metadata">

**Author:** [@guy\_22](https://discourse.processing.org/u/guy_22)\
**Replies:** 2\
**Last updated:** [August 6, 2018, 1:22pm UTC](https://discourse.processing.org/t/processing-and-pure-data/2394 "2018-08-06T13:22:45Z")

</div>

Hi, I am trying to send list\\array from pure data into processing with OSC, I manged to do it with one varaibale with oscp5 library but cant mange to send an array\\list of data and unpack it on processing, any idea how …

---

## [How to show multiple data from arduino](https://discourse.processing.org/t/how-to-show-multiple-data-from-arduino/2255)

<div class="topic-metadata">

**Author:** [@sandy](https://discourse.processing.org/u/sandy)\
**Replies:** 6\
**Last updated:** [August 6, 2018, 8:44am UTC](https://discourse.processing.org/t/how-to-show-multiple-data-from-arduino/2255 "2018-08-06T08:44:19Z")

</div>

how to read the value from arduino and then i want to displaying that on processing window. This is my arduino code : #include \<TimerOne.h\> #include \<PZEM004T.h\> #include \<LiquidCrystal.h\> int dutycycle = 0; // Ini…

---

## [Http request library](https://discourse.processing.org/t/http-request-library/2379)

<div class="topic-metadata">

**Author:** [@AbuYazid](https://discourse.processing.org/u/AbuYazid)\
**Replies:** 2\
**Last updated:** [August 6, 2018, 5:14am UTC](https://discourse.processing.org/t/http-request-library/2379 "2018-08-06T05:14:53Z")

</div>

I keep on getting this error message, how to solve it. I tried copying the library files manually but still, it’s not working. pls help

---

## [Multi line Text box needed!](https://discourse.processing.org/t/multi-line-text-box-needed/2318)

<div class="topic-metadata">

**Author:** [@codingking03](https://discourse.processing.org/u/codingking03)\
**Replies:** 16\
**Last updated:** [August 6, 2018, 1:37am UTC](https://discourse.processing.org/t/multi-line-text-box-needed/2318 "2018-08-06T01:37:24Z")

</div>

Is there any function for a multi line textbox input? like createInput() but in paragraph form like the one im typing in right now

---

## [Help a newbie with Penrose tilling](https://discourse.processing.org/t/help-a-newbie-with-penrose-tilling/2392)

<div class="topic-metadata">

**Author:** [@Tonchii](https://discourse.processing.org/u/Tonchii)\
**Replies:** 3\
**Last updated:** [August 5, 2018, 10:16pm UTC](https://discourse.processing.org/t/help-a-newbie-with-penrose-tilling/2392 "2018-08-05T22:16:34Z")

</div>

Hello guys, i have been trying to draw this Penrose tile, I already got the pentagon but now i’m stuck with the other figure. Any help? I’m new to this. By the way here’s the code: void setup(){ size(400,400); } …

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

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